summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2003-12-13 19:20:41 +0000
committerNicholas Clark <nick@ccl4.org>2003-12-13 19:20:41 +0000
commit1bbae031e701e9c1f2c21c9ed7e918cd9b2c4106 (patch)
treefdb55cd40c09ac9b4b35f9bcf6c972fa00b2421c
parentd3f3bf9f976e4d85e9ba3c08b7f72ac145bee586 (diff)
downloadperl-1bbae031e701e9c1f2c21c9ed7e918cd9b2c4106.tar.gz
Add Perl_ceil
p4raw-id: //depot/perl@21898
-rw-r--r--perl.h2
-rw-r--r--pp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 8fe1848d51..e8106d82e4 100644
--- a/perl.h
+++ b/perl.h
@@ -1282,6 +1282,7 @@ typedef NVTYPE NV;
# define Perl_atan2 atan2l
# define Perl_pow powl
# define Perl_floor floorl
+# define Perl_ceil ceill
# define Perl_fmod fmodl
# endif
/* e.g. libsunmath doesn't have modfl and frexpl as of mid-March 2000 */
@@ -1352,6 +1353,7 @@ long double modfl(long double, long double *);
# define Perl_atan2 atan2
# define Perl_pow pow
# define Perl_floor floor
+# define Perl_ceil ceil
# define Perl_fmod fmod
# define Perl_modf(x,y) modf(x,y)
# define Perl_frexp(x,y) frexp(x,y)
diff --git a/pp.c b/pp.c
index 6b06c97d7c..a074cf6231 100644
--- a/pp.c
+++ b/pp.c
@@ -2795,7 +2795,7 @@ PP(pp_int)
SETi(I_V(value));
} else {
/* This is maint, and we don't have Perl_ceil in perl.h */
- SETn(-Perl_floor(-value));
+ SETn(Perl_ceil(value));
}
}
}