We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fractional == 0.5
1 parent 4834e7e commit 8655352Copy full SHA for 8655352
ext/standard/math.c
@@ -131,7 +131,7 @@ static inline double php_round_helper(double value, int mode) {
131
return integral + copysign(1.0, integral);
132
}
133
134
- if (fractional == 0.5) {
+ if (UNEXPECTED(fractional == 0.5)) {
135
bool even = !fmod(integral, 2.0);
136
137
/* If the integral part is not even we can make it even
@@ -148,7 +148,7 @@ static inline double php_round_helper(double value, int mode) {
148
149
150
151
152
153
154
if (even) {
0 commit comments