Searched refs:RCP_LUT_BITS (Results 1 - 2 of 2) sorted by relevance

/external/deqp/framework/delibs/debase/
H A DdeInt32.c80 enum { RCP_LUT_BITS = 8 }; enumerator in enum:__anon4178
81 static const deUint32 s_rcpLUT[1<<RCP_LUT_BITS] =
149 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_rcpLUT) == (1<<RCP_LUT_BITS));
153 int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit, leave 8 next highest bits to lowest bits of normalized. */
161 DE_ASSERT(lookupNdx >= 0 && lookupNdx < (1<<RCP_LUT_BITS));
H A DdeInt32Test.c35 RCP_LUT_BITS = 8 enumerator in enum:__anon4180
40 printf("enum { RCP_LUT_BITS = %d };\n", RCP_LUT_BITS);
41 printf("static const deUint32 s_rcpLUT[1<<RCP_LUT_BITS] =\n");
44 for (ndx = 0; ndx < (1<<RCP_LUT_BITS); ndx++)
46 deUint32 val = (1u << RCP_LUT_BITS) | (deUint32)ndx;
47 deUint32 rcp = (deUint32)((1u << DE_RCP_FRAC_BITS) / ((double)val / (1<<RCP_LUT_BITS)));
56 if (ndx != (1<<RCP_LUT_BITS)-1)

Completed in 92 milliseconds