summaryrefslogtreecommitdiff
path: root/tests/test6/test6.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test6/test6.c')
-rw-r--r--tests/test6/test6.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/test6/test6.c b/tests/test6/test6.c
index fc99598..3a78c0c 100644
--- a/tests/test6/test6.c
+++ b/tests/test6/test6.c
@@ -26,10 +26,15 @@ static inline float todB_a2(const float *x){
//#endif
int main() {
- float f;
-
- for(f=1.f;f<100000000.f;f*=1.2f)
- printf("%f\t%f\n", todB_a(&f), todB_a2(&f));
+ float f, dbav[32]={0.f}, dbaf[32]={0.f};
+ int i=0;
+ for(f=1024000.f;f>1.f;f/=2.f) {
+ dbaf[31-i]=f;
+ dbav[31-i]=todB_a(&f);
+ i++;
+ }
+ for (i=0;i<32;i++)
+ printf("f==%f\tv==%f\n", dbaf[i], dbav[i]);
return 0;
}