summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-13 08:21:10 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-13 08:21:10 +0000
commitf99ed760797ce53ef0e5b69abd299013b9f61112 (patch)
treea40e9eaebf0dee7aa1793364fd871c0c8d3a389d /math
parent45698414d3ed3445f66dd9480aa6533656b48386 (diff)
downloadglibc-f99ed760797ce53ef0e5b69abd299013b9f61112.tar.gz
[BZ #2832, BZ #2987]
2006-06-08 Joseph Myers <jsm28@gcc.gnu.org> [BZ #2832] * math/gen-libm-test.pl (clean_up_number): Do not remove trailing 0s from integers. 2006-08-13 Ulrich Drepper <drepper@redhat.com> [BZ #2987] * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall for CPU clocks. * sysdeps/unix/clock_settime.c: Add support for platform-specific setting of CPU clocks.
Diffstat (limited to 'math')
-rwxr-xr-xmath/gen-libm-test.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/math/gen-libm-test.pl b/math/gen-libm-test.pl
index a63f62a1cb..0b0b8ca19f 100755
--- a/math/gen-libm-test.pl
+++ b/math/gen-libm-test.pl
@@ -558,9 +558,11 @@ sub parse_ulps {
sub clean_up_number {
my ($number) = @_;
- # Remove trailing zeros
- $number =~ s/0+$//;
- $number =~ s/\.$//;
+ # Remove trailing zeros after the decimal point
+ if ($number =~ /\./) {
+ $number =~ s/0+$//;
+ $number =~ s/\.$//;
+ }
return $number;
}