We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a586ec7 commit cba7e37Copy full SHA for cba7e37
src/nn/nn-cpu-ops.cpp
@@ -84,6 +84,8 @@ static inline float horizontalMax_avx2(__m256 v) {
84
}
85
86
static inline __m256 expf_avx2(__m256 x) {
87
+ x = _mm256_max_ps(x, _mm256_set1_ps(-88.0f));
88
+
89
const __m256 log2e = _mm256_set1_ps(1.4426950408889634f);
90
const __m256 c0 = _mm256_set1_ps(1.0f);
91
const __m256 c1 = _mm256_set1_ps(0.6931471805599453f);
0 commit comments