gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000011111011101
a = 0x00000000000007dd
a = x10 + x9 + x8 + x7 + x6 + x4 + x3 + x2 + 1

b = b0000000000000000000000000000000000000000000000000000001001001100
b = 0x000000000000024c
b = x9 + x6 + x3 + x2

  11111011101 | 1001001100
- 1001001100  | 1
  ----------- |
   1101000101 |
-  1001001100 | 1
  ----------- |
    100001001 |

cquotient = b0000000000000000000000000000000000000000000000000000000000000011
cquotient = 0x0000000000000003
cquotient = x + 1

cremainder = b0000000000000000000000000000000000000000000000000000000100001001
cremainder = 0x0000000000000109
cremainder = x8 + x3 + 1