コード例 #1
0
 public static uint hash(fix64p4x2 v)
 {
     return(csum(fold_to_uint(v.c0) * uint4(0x7AA07CD3u, 0xAF642BA9u, 0xA8F2213Bu, 0x9F3FDC37u) +
                 fold_to_uint(v.c1) * uint4(0xAC60D0C3u, 0x9263662Fu, 0xE69626FFu, 0xBD010EEBu)) + 0x9CEDE1D1u);
 }
コード例 #2
0
 public static uint4 hashwide(fix64p4x2 v)
 {
     return((fold_to_uint(v.c0) * uint4(0x43BE0B51u, 0xAF836EE1u, 0xB130C137u, 0x54834775u) +
             fold_to_uint(v.c1) * uint4(0x7C022221u, 0xA2D00EDFu, 0xA8977779u, 0x9F1C739Bu)) + 0x4B1BD187u);
 }
コード例 #3
0
 public static fix64p2x4 transpose(fix64p4x2 v)
 {
     return(fix64p2x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w));
 }