Searched refs:RCP_LUT_BITS (Results 1 – 2 of 2) sorted by relevance
80 enum { RCP_LUT_BITS = 8 }; in deRcp32() enumerator81 static const deUint32 s_rcpLUT[1<<RCP_LUT_BITS] = in deRcp32()149 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_rcpLUT) == (1<<RCP_LUT_BITS)); in deRcp32()153 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32()161 DE_ASSERT(lookupNdx >= 0 && lookupNdx < (1<<RCP_LUT_BITS)); in deRcp32()
35 RCP_LUT_BITS = 8 in deInt32_computeLUTs() enumerator40 printf("enum { RCP_LUT_BITS = %d };\n", RCP_LUT_BITS); in deInt32_computeLUTs()44 for (ndx = 0; ndx < (1<<RCP_LUT_BITS); ndx++) in deInt32_computeLUTs()46 deUint32 val = (1u << RCP_LUT_BITS) | (deUint32)ndx; in deInt32_computeLUTs()47 deUint32 rcp = (deUint32)((1u << DE_RCP_FRAC_BITS) / ((double)val / (1<<RCP_LUT_BITS))); in deInt32_computeLUTs()56 if (ndx != (1<<RCP_LUT_BITS)-1) in deInt32_computeLUTs()