Exemplo n.º 1
0
 public static uint2 hashwide(int2x4 v)
 {
     return((asuint(v.c0) * uint2(0x43BE0B51u, 0xAF836EE1u) +
             asuint(v.c1) * uint2(0xB130C137u, 0x54834775u) +
             asuint(v.c2) * uint2(0x7C022221u, 0xA2D00EDFu) +
             asuint(v.c3) * uint2(0xA8977779u, 0x9F1C739Bu)) + 0x4B1BD187u);
 }
Exemplo n.º 2
0
 public double2x4(int2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
Exemplo n.º 3
0
 public static uint hash(int2x4 v)
 {
     return(csum(asuint(v.c0) * uint2(0x7AA07CD3u, 0xAF642BA9u) +
                 asuint(v.c1) * uint2(0xA8F2213Bu, 0x9F3FDC37u) +
                 asuint(v.c2) * uint2(0xAC60D0C3u, 0x9263662Fu) +
                 asuint(v.c3) * uint2(0xE69626FFu, 0xBD010EEBu)) + 0x9CEDE1D1u);
 }
Exemplo n.º 4
0
 public float2x4(int2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
Exemplo n.º 5
0
 public static uint2 hash_wide(int2x4 v)
 {
     return((asuint(v.c0) * uint2(0x804B722Du, 0x738E50E5u) +
             asuint(v.c1) * uint2(0x4FC93C25u, 0xCD0445A5u) +
             asuint(v.c2) * uint2(0xD2B90D9Bu, 0xD35C9B2Du) +
             asuint(v.c3) * uint2(0xA10D9E27u, 0x568DAAA9u)) + 0x7530254Fu);
 }
Exemplo n.º 6
0
 public fix64p2x4(int2x4 v)
 {
     this.c0 = (fix64p2)v.c0;
     this.c1 = (fix64p2)v.c1;
     this.c2 = (fix64p2)v.c2;
     this.c3 = (fix64p2)v.c3;
 }
Exemplo n.º 7
0
 public uint2x4(int2x4 v)
 {
     this.c0 = (uint2)v.c0;
     this.c1 = (uint2)v.c1;
     this.c2 = (uint2)v.c2;
     this.c3 = (uint2)v.c3;
 }
Exemplo n.º 8
0
 public static uint hash(int2x4 v)
 {
     return(csum(asuint(v.c0) * uint2(0xD24EFA19u, 0x7D8048BBu) +
                 asuint(v.c1) * uint2(0x713BD06Fu, 0x753AD6ADu) +
                 asuint(v.c2) * uint2(0xD19764C7u, 0xB5D0BF63u) +
                 asuint(v.c3) * uint2(0xF9102C5Fu, 0x9881FB9Fu)) + 0x56A1530Du);
 }
Exemplo n.º 9
0
 public static uint hash(int2x4 v)
 {
     return(csum(asuint(v.c0) * uint2(0xF9EA92D5u, 0xC2FAFCB9u) +
                 asuint(v.c1) * uint2(0x616E9CA1u, 0xC5C5394Bu) +
                 asuint(v.c2) * uint2(0xCAE78587u, 0x7A1541C9u) +
                 asuint(v.c3) * uint2(0xF83BD927u, 0x6A243BCBu)) + 0x509B84C9u);
 }
Exemplo n.º 10
0
 public static uint2 hashwide(int2x4 v)
 {
     return((asuint(v.c0) * uint2(0x7530254Fu, 0x9F090439u) +
             asuint(v.c1) * uint2(0x5E9F85C9u, 0x8C4CA03Fu) +
             asuint(v.c2) * uint2(0xB8D969EDu, 0xAC5DB57Bu) +
             asuint(v.c3) * uint2(0xA91A02EDu, 0xB3C49313u)) + 0xF43A9ABBu);
 }
Exemplo n.º 11
0
 public static uint hash(int2x4 v)
 {
     return(csum(asuint(v.c0) * uint2(0x56A1530Du, 0x804B722Du) +
                 asuint(v.c1) * uint2(0x738E50E5u, 0x4FC93C25u) +
                 asuint(v.c2) * uint2(0xCD0445A5u, 0xD2B90D9Bu) +
                 asuint(v.c3) * uint2(0xD35C9B2Du, 0xA10D9E27u)) + 0x568DAAA9u);
 }
Exemplo n.º 12
0
 public static int4x2 transpose(int2x4 v)
 {
     return(int4x2(
                v.c0.x, v.c0.y,
                v.c1.x, v.c1.y,
                v.c2.x, v.c2.y,
                v.c3.x, v.c3.y));
 }
Exemplo n.º 13
0
 public static double2x4 double2x4(int2x4 v)
 {
     return(new double2x4(v));
 }
Exemplo n.º 14
0
 public static float2x4 float2x4(int2x4 v)
 {
     return(new float2x4(v));
 }
Exemplo n.º 15
0
 public static fix64p2x4 fix64p2x4(int2x4 v)
 {
     return(new fix64p2x4(v));
 }
Exemplo n.º 16
0
 public static uint2x4 uint2x4(int2x4 v)
 {
     return(new uint2x4(v));
 }