OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RCP_LUT_BITS
(Results
1 - 2
of
2
) sorted by null
/external/deqp/framework/delibs/debase/
deInt32Test.c
35
RCP_LUT_BITS
= 8
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
) | ndx;
47
deUint32 rcp = (int)((1u << DE_RCP_FRAC_BITS) / ((double)val / (1<<
RCP_LUT_BITS
)));
56
if (ndx != (1<<
RCP_LUT_BITS
)-1)
deInt32.c
60
enum {
RCP_LUT_BITS
= 8 };
61
static const deUint32 s_rcpLUT[1<<
RCP_LUT_BITS
] =
129
DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_rcpLUT) == (1<<
RCP_LUT_BITS
));
133
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. */
141
DE_ASSERT(lookupNdx >= 0 && lookupNdx < (1<<
RCP_LUT_BITS
));
Completed in 819 milliseconds