File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ namespace ojph {
414414 __m256i u = _mm256_slli_epi32 (t, shift);
415415 __m256 v = _mm256_cvtepi32_ps (u);
416416 v = _mm256_mul_ps (v, mul);
417- v = _mm256_add_ps (v, half);
417+ v = _mm256_sub_ps (v, half);
418418 _mm256_storeu_ps (dp, v);
419419 }
420420 }
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ namespace ojph {
480480 __m128i u = _mm_slli_epi32 (t, shift);
481481 __m128 v = _mm_cvtepi32_ps (u);
482482 v = _mm_mul_ps (v, mul);
483- v = _mm_add_ps (v, half);
483+ v = _mm_sub_ps (v, half);
484484 _mm_storeu_ps (dp, v);
485485 }
486486 }
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ namespace ojph {
449449 v128_t u = wasm_i32x4_shl (t, shift);
450450 v128_t v = wasm_f32x4_convert_i32x4 (u);
451451 v = wasm_f32x4_mul (v, mul);
452- v = wasm_f32x4_add (v, half);
452+ v = wasm_f32x4_sub (v, half);
453453 wasm_v128_store (dp, v);
454454 }
455455 }
You can’t perform that action at this time.
0 commit comments