Skip to content

Commit f42e570

Browse files
committed
rem_pio2: actually return medium value for x ~<= 5pi/4
1 parent d3f1dba commit f42e570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/rem_pio2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub(crate) fn rem_pio2(x: f64) -> (i32, f64, f64) {
8585
/* |x| ~<= 5pi/4 */
8686
if (ix & 0xfffff) == 0x921fb {
8787
/* |x| ~= pi/2 or 2pi/2 */
88-
medium(x, ix); /* cancellation -- use medium case */
88+
return medium(x, ix); /* cancellation -- use medium case */
8989
}
9090
if ix <= 0x4002d97c {
9191
/* |x| ~<= 3pi/4 */

0 commit comments

Comments
 (0)