diff options
author | Nicholas Clark <nick@ccl4.org> | 2003-12-13 19:20:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2003-12-13 19:20:41 +0000 |
commit | 1bbae031e701e9c1f2c21c9ed7e918cd9b2c4106 (patch) | |
tree | fdb55cd40c09ac9b4b35f9bcf6c972fa00b2421c | |
parent | d3f3bf9f976e4d85e9ba3c08b7f72ac145bee586 (diff) | |
download | perl-1bbae031e701e9c1f2c21c9ed7e918cd9b2c4106.tar.gz |
Add Perl_ceil
p4raw-id: //depot/perl@21898
-rw-r--r-- | perl.h | 2 | ||||
-rw-r--r-- | pp.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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) @@ -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)); } } } |