Ejemplo n.º 1
0
 public static fix64p3x2 transpose(fix64p2x3 v)
 {
     return(fix64p3x2(
                v.c0.x, v.c0.y,
                v.c1.x, v.c1.y,
                v.c2.x, v.c2.y));
 }
Ejemplo n.º 2
0
 public static uint2 hashwide(fix64p2x3 v)
 {
     return((fold_to_uint(v.c0) * uint2(0x83B5E729u, 0xC267163Fu) +
             fold_to_uint(v.c1) * uint2(0x67BC9149u, 0xAD7C5EC1u) +
             fold_to_uint(v.c2) * uint2(0x822A7D6Du, 0xB492BF15u)) + 0xD37220E3u);
 }
Ejemplo n.º 3
0
 public static uint hash(fix64p2x3 v)
 {
     return(csum(fold_to_uint(v.c0) * uint2(0x93C30C2Bu, 0xDCAF0351u) +
                 fold_to_uint(v.c1) * uint2(0x6E050B01u, 0x750FDBF5u) +
                 fold_to_uint(v.c2) * uint2(0x7F3DD499u, 0x52EAAEBBu)) + 0x4599C793u);
 }