Skip to content

Commit

Permalink
apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored and github-actions[bot] committed Jun 21, 2023
1 parent 0cd3b84 commit bf31fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/layer/arm/unaryop_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ struct unary_op_round
#if defined(__clang__) || defined(__GNUC__)
__attribute__((optimize("no-fast-math")))
#endif
float32x4_t func_pack4(const float32x4_t& x) const
float32x4_t
func_pack4(const float32x4_t& x) const
{
float32x4_t _magic = vdupq_n_f32(12582912.f); // 1.5 * 2^23
return vsubq_f32(vaddq_f32(x, _magic), _magic);
Expand Down
3 changes: 2 additions & 1 deletion src/layer/x86/unaryop_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ struct unary_op_round
#if defined(__clang__) || defined(__GNUC__)
__attribute__((optimize("no-fast-math")))
#endif
__m128 func_pack4(const __m128& x) const
__m128
func_pack4(const __m128& x) const
{
// x = (x + 12582912.f) - 12582912.f;
__m128 _magic = _mm_set1_ps(12582912.f); // 1.5 * 2^23
Expand Down

0 comments on commit bf31fa8

Please sign in to comment.