Skip to content

Commit c5e1894

Browse files
committed
fix def
Signed-off-by: jiqing-feng <[email protected]>
1 parent fcb8456 commit c5e1894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csrc/cpu_ops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,12 @@ static inline bool has_avx512bf16() {
319319
return v;
320320
}
321321
#else
322-
bool has_avx512f() {
322+
static inline bool has_avx512f() {
323323
static const bool supported_avx512f = __builtin_cpu_supports("avx512f");
324324
return supported_avx512f;
325325
}
326326

327-
bool has_avx512bf16() {
327+
static inline bool has_avx512bf16() {
328328
static const bool supported_avx512bf16 = __builtin_cpu_supports("avx512bf16");
329329
return supported_avx512bf16;
330330
}

0 commit comments

Comments
 (0)