diff options
| author | flatmush <flatmush@d3e1167c-abe1-51d5-8199-f9061ebe54e4> | 2011-02-24 16:57:54 +0000 |
|---|---|---|
| committer | flatmush <flatmush@d3e1167c-abe1-51d5-8199-f9061ebe54e4> | 2011-02-24 16:57:54 +0000 |
| commit | a9ff155dccc55b11f77d82862cb340188af39aa3 (patch) | |
| tree | a6eeb5446202779261e691cd4bd41a4a29ff90b2 | |
| parent | edce6d699ea3748370ff9fdc7f3dc048aaffc7d0 (diff) | |
| download | libfixmath-a9ff155dccc55b11f77d82862cb340188af39aa3.tar.gz | |
Minor fix regarding printf format in fixtest.
| -rw-r--r-- | fixtest/fixtest.depend | 2 | ||||
| -rw-r--r-- | fixtest/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fixtest/fixtest.depend b/fixtest/fixtest.depend index ca1a110..ac2f94a 100644 --- a/fixtest/fixtest.depend +++ b/fixtest/fixtest.depend @@ -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>
diff --git a/fixtest/main.c b/fixtest/main.c index b8e1146..86a2c23 100644 --- a/fixtest/main.c +++ b/fixtest/main.c @@ -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;
|
