[Liboil-commit] examples/orc
David Schleef
ds at kemper.freedesktop.org
Sat May 24 20:22:38 PDT 2008
examples/orc/jit.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit b04fe9a67a8f071224650b7ad77598955a1c7d77
Author: David Schleef <ds at bigkitten.com>
Date: Sat May 24 20:22:33 2008 -0700
[orc] Fix compile on powerpc
diff --git a/examples/orc/jit.c b/examples/orc/jit.c
index bbc3e50..cab412c 100644
--- a/examples/orc/jit.c
+++ b/examples/orc/jit.c
@@ -35,13 +35,11 @@ main (int argc, char *argv[])
offset = orc_program_add_constant (p, "s16", 1, "offset");
shift = orc_program_add_constant (p, "s16", 1, "shift");
-#if 0
orc_program_append (p, "add_s16", t1, s1, s2);
orc_program_append (p, "add_s16", t1, t1, offset);
orc_program_append (p, "rshift_s16", d1, t1, shift);
-#endif
-#if 1
+#if 0
orc_program_append (p, "lshift_s16", d1, s1, shift);
//orc_program_append (p, "sub_s16", t1, t1, shift);
//orc_program_append (p, "mul_s16", d1, s1, s2);
@@ -72,7 +70,7 @@ main (int argc, char *argv[])
for(i=0;i<N;i++){
printf("# %4d %4d %4d %4d\n", src1[i], src2[i], dest[i],
- src1[i] << 1);
+ (src1[i] + src2[i] + 1) >> 1);
}
orc_executor_free (ex);
More information about the Liboil-commit
mailing list