From b62990918e160fba3af6443dfc07f475bf0c3fc0 Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Mon, 12 Jun 2000 07:13:22 +0000 Subject: * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the other header files. Mention about 128-byte cache line sizes. (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt. * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update for current calling sequence. * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment. * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly. * sysdeps/powerpc/fpu/s_rintf.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit and setrlimit syscalls for backwards compatibility. 2000-04-11 Geoff Keating * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the other header files. Mention about 128-byte cache line sizes. (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt. * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update for current calling sequence. * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment. * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly. * sysdeps/powerpc/fpu/s_rintf.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit and setrlimit syscalls for backwards compatibility. --- sysdeps/powerpc/fpu/s_rint.c | 6 +++--- sysdeps/powerpc/fpu/s_rintf.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sysdeps/powerpc/fpu') diff --git a/sysdeps/powerpc/fpu/s_rint.c b/sysdeps/powerpc/fpu/s_rint.c index a475875a97..204381e402 100644 --- a/sysdeps/powerpc/fpu/s_rint.c +++ b/sysdeps/powerpc/fpu/s_rint.c @@ -1,5 +1,5 @@ /* Round a 64-bit floating point value to the nearest integer. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -33,8 +33,8 @@ __rint (double x) } else if (x < 0.0) { - x -= TWO52; - x += TWO52; + x = TWO52 - x; + x = -(x - TWO52); } } diff --git a/sysdeps/powerpc/fpu/s_rintf.c b/sysdeps/powerpc/fpu/s_rintf.c index dde40bb3e5..12c6b55976 100644 --- a/sysdeps/powerpc/fpu/s_rintf.c +++ b/sysdeps/powerpc/fpu/s_rintf.c @@ -1,5 +1,5 @@ /* Round a 32-bit floating point value to the nearest integer. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -33,8 +33,8 @@ __rintf (float x) } else if (x < 0.0) { - x -= TWO23; - x += TWO23; + x = TWO23 - x; + x = -(x - TWO23); } } -- cgit 1.4.1