Skip to content

Commit

Permalink
fix sse2 trunc
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jun 23, 2023
1 parent 6628c33 commit e6be39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/x86/unaryop_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ struct unary_op_trunc
#if __SSE4_1__
return _mm_round_ps(x, _MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC);
#else
return _mm_cvtepi32_ps(_mm_cvtps_epi32(x));
return _mm_cvtepi32_ps(_mm_cvttps_epi32(x));
#endif
}
#if __AVX__
Expand Down

0 comments on commit e6be39f

Please sign in to comment.