Skip to content

Instantly share code, notes, and snippets.

@edefazio
edefazio / swar.subword.SWARIntro_NoComments.java
Last active January 22, 2024 09:48
using SWAR (SIMD Within A Register) in Java using general purpose registers
package swar.subword;
public class SWAR_Intro_NoComments
{
public static void main ( String[] args )
{
int x = 12345678;
int y = 9012345;
long xyCompound = as2x32BitCompound ( x, y );