diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-07 05:21:43 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-07 05:21:43 +0000 |
commit | fce2b89e3773f74f134cc299697e386f7d98f01f (patch) | |
tree | 71884355c21fac3367172cdac205db85eb0c3a24 /pp.c | |
parent | e654d9081492941a3b1145787aaa3e0faa09141e (diff) | |
download | perl-fce2b89e3773f74f134cc299697e386f7d98f01f.tar.gz |
Define the Perl_pp_i_modulo_1() only iff we have glibc.
(Stronger variant of "pp.c: Perl_pp_i_modulo_1 needs help
in non-glibc case", from Craig Berry)
p4raw-id: //depot/perl@18845
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2471,12 +2471,12 @@ PP(pp_i_modulo_0) } } +#ifdef __GLIBC__ STATIC PP(pp_i_modulo_1) { -#ifdef __GLIBC__ /* This is the i_modulo with the workaround for the _moddi3 bug - * in (at least) glibc 2.2.5 (the "right = -right" is the workaround). + * in (at least) glibc 2.2.5 (the PERL_ABS() the workaround). * See below for pp_i_modulo. */ dSP; dATARGET; tryAMAGICbin(modulo,opASSIGN); { @@ -2486,8 +2486,8 @@ PP(pp_i_modulo_1) SETi( left % PERL_ABS(right) ); RETURN; } -#endif } +#endif PP(pp_i_modulo) { |