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 Apr 30, 2024
1 parent 1830257 commit 7ee4310
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/layer/arm/gru_int8.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,15 +503,15 @@ static void gru_int8_gate_output(const Mat& gates, Mat& hidden_state, Mat& top_b
"st1 {v0.4h}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_gru_H0)
"w"(_gru_H0)
: "memory", "v0");
#else // __aarch64__
asm volatile(
"vcvt.f16.f32 d0, %q2 \n"
"vst1.u16 {d0}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_gru_H0)
"w"(_gru_H0)
: "memory", "q0");
#endif // __aarch64__
#else // NCNN_GNU_INLINE_ASM
Expand Down
4 changes: 2 additions & 2 deletions src/layer/arm/lstm_int8.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ static void lstm_int8_gate_output(const Mat& gates, const Mat& weight_hr, Mat& h
"st1 {v0.4h}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_lstm_H)
"w"(_lstm_H)
: "memory", "v0");
#else // __aarch64__
asm volatile(
"vcvt.f16.f32 d0, %q2 \n"
"vst1.u16 {d0}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_lstm_H)
"w"(_lstm_H)
: "memory", "q0");
#endif // __aarch64__
#else // NCNN_GNU_INLINE_ASM
Expand Down
4 changes: 2 additions & 2 deletions src/layer/arm/rnn_int8.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ static void rnn_int8_gate_output(const Mat& gates, Mat& hidden_state, Mat& top_b
"st1 {v0.4h}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_rnn_H)
"w"(_rnn_H)
: "memory", "v0");
#else // __aarch64__
asm volatile(
"vcvt.f16.f32 d0, %q2 \n"
"vst1.u16 {d0}, [%0] \n"
: "=r"(outptr) // %0
: "0"(outptr),
"w"(_rnn_H)
"w"(_rnn_H)
: "memory", "q0");
#endif // __aarch64__
#else // NCNN_GNU_INLINE_ASM
Expand Down

0 comments on commit 7ee4310

Please sign in to comment.