Home | History | Annotate | Download | only in crc32

Lines Matching refs:deg

47 func get_remainder(poly uint64, deg uint, n uint) uint64 {
49 rem, _ := xnmodp(n, poly, deg)
60 // p is the representation of the binary polynomial x**n mod (x ** deg + "poly")
62 // div is the binary representation of the polynomial x**n / (x ** deg + "poly")
63 func xnmodp(n uint, poly uint64, deg uint) (uint64, uint64) {
67 if n < deg {
71 mask = 1<<deg - 1
75 deg--
77 for n > deg {
78 high = (mod >> deg) & 1