* Read a row from the table. */
| 105 | * Read a row from the table. |
| 106 | */ |
| 107 | static inline struct gf128 |
| 108 | readrow(struct gf128table *tbl, unsigned bits) |
| 109 | { |
| 110 | struct gf128 r; |
| 111 | |
| 112 | bits = bits % 16; |
| 113 | |
| 114 | r.v[0] = ((uint64_t)tbl->a[bits] << 32) | tbl->b[bits]; |
| 115 | r.v[1] = ((uint64_t)tbl->c[bits] << 32) | tbl->d[bits]; |
| 116 | |
| 117 | return r; |
| 118 | } |
| 119 | |
| 120 | /* |
| 121 | * These are the reduction values. Since we are dealing with bit reversed |
no outgoing calls
no test coverage detected