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 e0575ea commit dba4755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 dba4755

Please sign in to comment.