Minor fix regarding printf format in fixtest.
This commit is contained in:
parent
edce6d699e
commit
a9ff155dcc
|
@ -1,5 +1,5 @@
|
|||
# depslib dependency file v1.0
|
||||
1298565766 source:g:\vrfx\libfixmath\fixtest\main.c
|
||||
1298566464 source:g:\vrfx\libfixmath\fixtest\main.c
|
||||
<stdio.h>
|
||||
<stdlib.h>
|
||||
<math.h>
|
||||
|
|
|
@ -53,7 +53,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
printf("Floating Point: %08"PRIuHICLOCK" @ %"PRIu32"Hz\n", flt_duration, HICLOCKS_PER_SEC);
|
||||
printf("Fixed Point: %08"PRIuHICLOCK" @ %"PRIu32"Hz\n", fix_duration, HICLOCKS_PER_SEC);
|
||||
printf("Difference: %08"PRIiHICLOCK" (% 3.2f%)\n", (flt_duration - fix_duration), ((fix_duration * 100.0) / flt_duration));
|
||||
printf("Difference: %08"PRIiHICLOCK" (% 3.2f%%)\n", (flt_duration - fix_duration), ((fix_duration * 100.0) / flt_duration));
|
||||
printf("Error: %f%%\n", ((fix16_to_dbl(fix_error) * 100.0) / iter));
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue