Commit 03d245d
committed
[Math] Fix Nan from powf() domain error.
This change prevents calling powf(x,y) with negative x.
The SIMD versions using ssePower() already seem to be resistent to
negative pixel values, but the scalar version was not.
This would cause a SIGFPE on apps that have floating point exceptions
enabled.
FIXES: #2066
Signed-off-by: Bram Stolk <[email protected]>1 parent 4dd0273 commit 03d245d
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
542 | 545 | | |
543 | 546 | | |
544 | 547 | | |
| |||
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
630 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
631 | 637 | | |
632 | 638 | | |
633 | 639 | | |
| |||
0 commit comments