gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000001000000000000000000000000000000
a = 0x0000000040000000
a = x30

b = b0000000000000000000000000000000000000000001001111000101010011001
b = 0x0000000000278a99
b = x21 + x18 + x17 + x16 + x15 + x11 + x9 + x7 + x4 + x3 + 1

  1000000000000000000000000000000 | 1001111000101010011001
- 1001111000101010011001          | 1
  ------------------------------- |
     1111000101010011001000000000 |
-  0000000000000000000000         | 0
-   0000000000000000000000        | 0
-    1001111000101010011001       | 1
  ------------------------------- |
      110111101111001010001000000 |
-     1001111000101010011001      | 1
  ------------------------------- |
       10000001101100011101100000 |
-      1001111000101010011001     | 1
  ------------------------------- |
          11111100110111011110000 |
-       0000000000000000000000    | 0
-        0000000000000000000000   | 0
-         1001111000101010011001  | 1
  ------------------------------- |
           1100010111101111000010 |
-          1001111000101010011001 | 1
  ------------------------------- |
            101101111000101011011 |

cquotient = b0000000000000000000000000000000000000000000000000000001001110011
cquotient = 0x0000000000000273
cquotient = x9 + x6 + x5 + x4 + x + 1

cremainder = b0000000000000000000000000000000000000000000101101111000101011011
cremainder = 0x000000000016f15b
cremainder = x20 + x18 + x17 + x15 + x14 + x13 + x12 + x8 + x6 + x4 + x3 + x + 1