[FFmpeg-soc] [soc] [propchange]: r4945 - svn:log
cmcq
subversion at mplayerhq.hu
Wed Aug 5 16:40:35 CEST 2009
Author: cmcq
Revision: 4945
Property Name: svn:log
Action: modified
Property diff:
--- old property value
+++ new property value
@@ -1,35 +1 @@
-sqrt is faster than log by about five times (or 2.5 times with libimf)
-test program:
-
-#include <stdio.h>
-#include <math.h>
-#include <float.h>
-
-int main(int argc, char *argv[])
-{
- float x;
- float y = 0;
- if (argc == 1) {
- for (x = 1; x < 10; x += 0.0000005)
- y += log10f(x);
- printf("Total log: %f\n", y);
- } else {
- for (x = 1; x < 8; x += 0.0000005)
- y += sqrtf(x);
- printf("Total sqrt: %f\n", y);
- }
- return 0;
-}
-
-$ time ./test 1; time ./test
-Total sqrt: 30237319.627204
-
-real 0m0.249s
-user 0m0.248s
-sys 0m0.000s
-Total log: 11628338.000000
-
-real 0m1.385s
-user 0m1.372s
-sys 0m0.008s
-
+sqrt is faster than log by about 5x
More information about the FFmpeg-soc
mailing list