[pypy-commit] extradoc extradoc: match changes made to sqrt.py
hakanardo
noreply at buildbot.pypy.org
Fri Jun 17 09:18:55 CEST 2011
Author: Hakan Ardo <hakan at debian.org>
Branch: extradoc
Changeset: r3723:43697a729875
Date: 2011-06-17 09:22 +0200
http://bitbucket.org/pypy/extradoc/changeset/43697a729875/
Log: match changes made to sqrt.py
diff --git a/talk/iwtc11/benchmarks/sqrt/sqrt_fix16.c b/talk/iwtc11/benchmarks/sqrt/sqrt_fix16.c
--- a/talk/iwtc11/benchmarks/sqrt/sqrt_fix16.c
+++ b/talk/iwtc11/benchmarks/sqrt/sqrt_fix16.c
@@ -1,12 +1,12 @@
#include <stdio.h>
int main() {
- long y = 1234 << 16;
+ long y = 123 << 16;
long x = y / 2;
long n = 100000000;
while (n>0) {
n -= 1;
- x = ((x + (y << 16)/x)) / 2;
+ x = ((x + (y << 8)/(x >> 8))) / 2;
}
printf("%f\n", ((double) x) / ((double) (1<<16)));
fprintf(stderr, "sqrt(Fix16): ");
More information about the pypy-commit
mailing list