Exemplo n.º 1
0
Arquivo: Mod.cs Projeto: 0xCM/arrows
 public uint div(uint a)
 => (uint)UMul.mulHi(M, a);
Exemplo n.º 2
0
 public static ulong MulHi(this ulong lhs, ulong rhs)
 {
     UMul.mulHi(lhs, rhs, out ulong dst);
     return(dst);
 }
Exemplo n.º 3
0
Arquivo: Mod.cs Projeto: 0xCM/arrows
 public uint mod(uint a)
 => (uint)UMul.mulHi(M * a, n);
Exemplo n.º 4
0
Arquivo: UMul.cs Projeto: 0xCM/arrows
 public static ulong mulHi(ulong lhs, ulong rhs)
 {
     UMul.mulHi(lhs, rhs, out ulong hi);
     return(hi);
 }