dVAR; dSP; dTARGET;
tryAMAGICbin_MG(atan2_amg, 0);
{
- dPOPTOPnnrl_nomg;
+ dPOPTOPnnrl_halfmg;
SETn(Perl_atan2(left, right));
RETURN;
}
#define dPOPTOPnnrl_ul dPOPXnnrl_ul(TOP)
#define dPOPTOPnnrl_nomg \
NV right = SvNV_nomg(TOPs); NV left = (sp--, SvNV_nomg(TOPs))
+#ifdef PERL_CORE
+# define dPOPTOPnnrl_halfmg \
+ NV left = SvNV_nomg(TOPm1s); \
+ NV right = TOPs == TOPm1s ? SvNV(TOPs) : SvNV_nomg(TOPs); sp--
+#endif
#define dPOPTOPiirl dPOPXiirl(TOP)
#define dPOPTOPiirl_ul dPOPXiirl_ul(TOP)
#define dPOPTOPiirl_ul_nomg dPOPXiirl_ul_nomg(TOP)
bin_int_test '==', 1, 2, "";
bin_int_test '!=', 1, 2, 1;
bin_int_test '<=>', 1, 2, -1;
- tie $var, "main", 1, 4;
- cmp_ok(atan2($var, $var), '<', .3, 'retval of atan2 $var, $var');
- check_count 'atan2', 2;
}
+tie $var, "main", 1, 4;
+cmp_ok(atan2($var, $var), '<', .3, 'retval of atan2 $var, $var');
+check_count 'atan2', 2;
__DATA__