Exemplo n.º 1
0
 public static uint2 hashwide(double2x4 v)
 {
     return((fold_to_uint(v.c0) * uint2(0xCC74B3B7u, 0x83B58237u) +
             fold_to_uint(v.c1) * uint2(0x833E3E29u, 0xA9D919BFu) +
             fold_to_uint(v.c2) * uint2(0xC3EC1D97u, 0xB8B208C7u) +
             fold_to_uint(v.c3) * uint2(0x5D3ED947u, 0x4473BBB1u)) + 0xCBA11D5Fu);
 }
Exemplo n.º 2
0
 public int2x4(double2x4 v)
 {
     this.c0 = (int2)v.c0;
     this.c1 = (int2)v.c1;
     this.c2 = (int2)v.c2;
     this.c3 = (int2)v.c3;
 }
Exemplo n.º 3
0
 public static uint hash(double2x4 v)
 {
     return(csum(fold_to_uint(v.c0) * uint2(0x91475DF7u, 0x55E84827u) +
                 fold_to_uint(v.c1) * uint2(0x90A285BBu, 0x5D19E1D5u) +
                 fold_to_uint(v.c2) * uint2(0xFAAF07DDu, 0x625C45BDu) +
                 fold_to_uint(v.c3) * uint2(0xC9F27FCBu, 0x6D2523B1u)) + 0x6E2BF6A9u);
 }
Exemplo n.º 4
0
 public float2x4(double2x4 v)
 {
     this.c0 = (float2)v.c0;
     this.c1 = (float2)v.c1;
     this.c2 = (float2)v.c2;
     this.c3 = (float2)v.c3;
 }
Exemplo n.º 5
0
 public static uint2 hash_wide(double2x4 v)
 {
     return((fold_to_uint(v.c0) * uint2(0xE3600729u, 0x5F17300Du) +
             fold_to_uint(v.c1) * uint2(0x670D6809u, 0x7AF32C49u) +
             fold_to_uint(v.c2) * uint2(0xAE131389u, 0x5D1B165Bu) +
             fold_to_uint(v.c3) * uint2(0x87096CD7u, 0x4C7F6DD1u)) + 0x4822A3E9u);
 }
Exemplo n.º 6
0
 public static uint hash(double2x4 v)
 {
     return(csum(fold_to_uint(v.c0) * uint2(0xFA3A3285u, 0xAD55999Du) +
                 fold_to_uint(v.c1) * uint2(0xDCDD5341u, 0x94DDD769u) +
                 fold_to_uint(v.c2) * uint2(0xA1E92D39u, 0x4583C801u) +
                 fold_to_uint(v.c3) * uint2(0x9536A0F5u, 0xAF816615u)) + 0x9AF8D62Du);
 }
Exemplo n.º 7
0
 public static uint hash(double2x4 v)
 {
     return(csum(fold_to_uint(v.c0) * uint2(0x9C8A2F05u, 0x4DDC6509u) +
                 fold_to_uint(v.c1) * uint2(0x7CF083CBu, 0x5C4D6CEDu) +
                 fold_to_uint(v.c2) * uint2(0xF9137117u, 0xE857DCE1u) +
                 fold_to_uint(v.c3) * uint2(0xF62213C5u, 0x9CDAA959u)) + 0xAA269ABFu);
 }
Exemplo n.º 8
0
 public static double4x2 transpose(double2x4 v)
 {
     return(double4x2(
                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.º 9
0
 public static int2x4 int2x4(double2x4 v)
 {
     return(new int2x4(v));
 }
Exemplo n.º 10
0
 public static float2x4 float2x4(double2x4 v)
 {
     return(new float2x4(v));
 }
Exemplo n.º 11
0
 public static uint2x4 uint2x4(double2x4 v)
 {
     return(new uint2x4(v));
 }