gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000010000000000
a = 0x00000400
a = x10

b = b00000000000000000000011111011101
b = 0x000007dd
b = x10 + x9 + x8 + x7 + x6 + x4 + x3 + x2 + 1

  10000000000 | 11111011101
- 11111011101 | 1
  ----------- |
   1111011101 |

cquotient = b00000000000000000000000000000001
cquotient = 0x00000001
cquotient = 1

cremainder = b00000000000000000000001111011101
cremainder = 0x000003dd
cremainder = x9 + x8 + x7 + x6 + x4 + x3 + x2 + 1