This commit is contained in:
veclavtlica
2026-09-14 02:04:16 +03:00
parent c350d65592
commit 26f6ba56e9
16 changed files with 178 additions and 72 deletions
+7 -2
View File
@@ -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
}