- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for mpz_cmp (0.04 seconds)
-
misc/cgo/gmp/gmp.go
*/ // CmpInt compares x and y. The result is // // -1 if x < y // 0 if x == y // +1 if x > y func CmpInt(x, y *Int) int { x.doinit() y.doinit() switch cmp := C.mpz_cmp(&x.i[0], &y.i[0]); { case cmp < 0: return -1 case cmp == 0: return 0 } return +1 } // DivModInt sets q = x / y and r = x % y. func DivModInt(q, r, x, y *Int) { q.doinit()
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Click Count (0)