gf(2) Polynomial long division

c = a/b

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

b = b0000000000000000000000000000000000000000000000000000001110010011
b = 0x0000000000000393
b = x9 + x8 + x7 + x4 + x + 1

  1001111000101010011001 | 1110010011
- 1110010011             | 1
  ---------------------- |
   111101011101010011001 |
-  1110010011            | 1
  ---------------------- |
      100010001010011001 |
-   0000000000           | 0
-    0000000000          | 0
-     1110010011         | 1
  ---------------------- |
       11011000110011001 |
-      1110010011        | 1
  ---------------------- |
         111100000011001 |
-       0000000000       | 0
-        1110010011      | 1
  ---------------------- |
            101001111001 |
-         0000000000     | 0
-          0000000000    | 0
-           1110010011   | 1
  ---------------------- |
             10000110101 |
-            1110010011  | 1
  ---------------------- |
              1100010011 |
-             1110010011 | 1
  ---------------------- |
                10000000 |

cquotient = b0000000000000000000000000000000000000000000000000001100110100111
cquotient = 0x00000000000019a7
cquotient = x12 + x11 + x8 + x7 + x5 + x2 + x + 1

cremainder = b0000000000000000000000000000000000000000000000000000000010000000
cremainder = 0x0000000000000080
cremainder = x7