Skip to content

Commit 4b28587

Browse files
committed
basic: iplus(): use finite() instead of isfinite()
Much faster. Not 100% sure that this isn't a cache effect, but reordering stuff did not change anything, while using the finite() function instead of the isfinite() macro (which uses __fpclassifyd()) does.
1 parent 11935fd commit 4b28587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ttbasic/basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6269,7 +6269,7 @@ num_t BASIC_FP iplus() {
62696269
break;
62706270

62716271
default:
6272-
if (!err && !isfinite(value) && !math_exceptions_disabled) {
6272+
if (!math_exceptions_disabled && !err && !finite(value)) {
62736273
if (isinf(value))
62746274
err = ERR_DIVBY0;
62756275
else

0 commit comments

Comments
 (0)