Use fabs
PATCH 1/1 Use fabs
target-ppc/op_helper.c uses fabsl (which operates on a "long double" value) to get the absolute value of a "double" value. The patch below changes this to fabs. fabsl is significantly slower on some hosts, and not present on others.
Paul
Index: target-ppc/op_helper.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-ppc/op_helper.c,v retrieving revision 1.11
op_helper.c 10 Mar 2005 01:10:56 -0000 renamed from op_helper.c 15 Feb 2005 23:06:19 -0000 1.11 +2 -2
@@ -371,12 +371,12 @@ void do_fcmpo (void) void do_fabs (void) { - FT0 = fabsl(FT0); + FT0 = fabs(FT0); } void do_fnabs (void) { - FT0 = -fabsl(FT0); + FT0 = -fabs(FT0); } /* Instruction cache invalidation helper */