static float *acos_table = NULL;
static int acos_fd = -1;
+
#ifdef FAST_ACOSF_TESTING
- static float strip_float(float f)
- {
- float_conv_t d;
- d.i = d.i & (VARIA_DATA_MASK | CONST_DATA_MASK);
+ #define INF(x) printf("[%s] [%u]\n", #x, x)
+ #define INFX(x) printf("[%s] [%08x]\n", #x, x)
+
+ static void
+ debug_print(void);
+
+ static void
+ dump_table_summary(void);
+
+ #endif /* FAST_ACOSF_TESTING */
- return d.i;
- }
- #endif
-extern void compute_table(void)
+extern int compute_table(void)
{
uint32_t i;
- float f;
- FILE *acos_table_file;
- size_t ret;
+ float f;
+ FILE *acos_table_file;
+ size_t res;
acos_table_file = fopen(ACOS_TABLE_FILENAME, "w");