|
Expand Up
|
@@ -149,8 +149,8 @@ fma_get_exponent(__m256 x) |
|
|
__m256 normal_mask = _mm256_cmp_ps(x, _mm256_set1_ps(FLT_MIN), _CMP_GE_OQ); |
|
|
|
|
|
/* |
|
|
* It is necessary for temp1 to be volatile, a bug in clang optimizes it out which leads |
|
|
* to an overflow warning in some cases. See https://github.com/numpy/numpy/issues/18005 |
|
|
* The volatile is probably unnecessary now since we compile clang with |
|
|
* `-ftrapping-math`: https://github.com/numpy/numpy/issues/18005 |
|
|
*/ |
|
|
volatile __m256 temp1 = _mm256_blendv_ps(x, _mm256_set1_ps(0.0f), normal_mask); |
|
|
__m256 temp = _mm256_mul_ps(temp1, two_power_100); |
|
Expand Down
Expand Up
|
@@ -180,8 +180,8 @@ fma_get_mantissa(__m256 x) |
|
|
__m256 normal_mask = _mm256_cmp_ps(x, _mm256_set1_ps(FLT_MIN), _CMP_GE_OQ); |
|
|
|
|
|
/* |
|
|
* It is necessary for temp1 to be volatile, a bug in clang optimizes it out which leads |
|
|
* to an overflow warning in some cases. See https://github.com/numpy/numpy/issues/18005 |
|
|
* The volatile is probably unnecessary now since we compile clang with |
|
|
* `-ftrapping-math`: https://github.com/numpy/numpy/issues/18005 |
|
|
*/ |
|
|
volatile __m256 temp1 = _mm256_blendv_ps(x, _mm256_set1_ps(0.0f), normal_mask); |
|
|
__m256 temp = _mm256_mul_ps(temp1, two_power_100); |
|
Expand Down
|
|