gf(2) Polynomial long division

c = a/b

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

b = b0000000000000000000000000000000000000000000000000000000000110111
b = 0x0000000000000037
b = x5 + x4 + x2 + x + 1

  11111011101 | 110111
- 110111      | 1
  ----------- |
    100111101 |
-  000000     | 0
-   110111    | 1
  ----------- |
     10000101 |
-    110111   | 1
  ----------- |
      1011001 |
-     110111  | 1
  ----------- |
       110111 |
-      110111 | 1
  ----------- |
            0 |

cquotient = b0000000000000000000000000000000000000000000000000000000000101111
cquotient = 0x000000000000002f
cquotient = x5 + x3 + x2 + x + 1

cremainder = b0000000000000000000000000000000000000000000000000000000000000000
cremainder = 0x0000000000000000
cremainder = 0