web?
This commit is contained in:
+7
-2
@@ -3,14 +3,17 @@
|
||||
https://github.com/howerj/q/blob/master/q.c
|
||||
*/
|
||||
|
||||
#include "fix.h"
|
||||
#include "Timer/timer.h"
|
||||
#include "def.h"
|
||||
#include "fix.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef COM_DEF_NOSTD
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <tgmath.h>
|
||||
#endif
|
||||
|
||||
// 4-bit LUT (16 entries) for the normalized range [0.5, 2.0)
|
||||
// It stores the initial guess scaled to Q16.16.
|
||||
@@ -130,6 +133,7 @@ void com_fix_run_bench(void) {
|
||||
}
|
||||
|
||||
void com_fix_run_tests(void) {
|
||||
#ifndef COM_DEF_NOSTD
|
||||
{
|
||||
double max_sqrt_deviation = 0.0f;
|
||||
com_fix_t sqrt_accumulator = 0;
|
||||
@@ -196,4 +200,5 @@ void com_fix_run_tests(void) {
|
||||
printf("max sincos deviations: %f %f\n", max_sin_deviation,
|
||||
max_cos_deviation);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user