MCPcopy Create free account
hub / github.com/F-Stack/f-stack / readrow

Function readrow

freebsd/opencrypto/gfmult.c:107–118  ·  view source on GitHub ↗

* Read a row from the table. */

Source from the content-addressed store, hash-verified

105 * Read a row from the table.
106 */
107static inline struct gf128
108readrow(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

Callers 2

gfmultwordFunction · 0.85
gfmultword4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected