public static int test_0_simple_packed_hadd () { Vector4f a = new Vector4f (5, 5, 6, 6); Vector4f b = new Vector4f (7, 7, 8, 8); Vector4f c = a.HorizontalAdd (b); if (c.X != 10f) return 1; if (c.Y != 12f) return 2; if (c.Z != 14f) return 3; if (c.W != 16f) return 4; return 0; }