Skip to content

Commit d31ce67

Browse files
fix annotations
1 parent 74cf742 commit d31ce67

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/aws/checksums/private/crc_util.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ void aws_checksums_crc32_init(void);
7676
*/
7777
void aws_checksums_crc64_init(void);
7878

79-
static bool aws_cpu_has_clmul_cached();
80-
static bool aws_cpu_has_sse42_cached();
81-
static bool aws_cpu_has_avx512_cached();
82-
static bool aws_cpu_has_vpclmulqdq_cached();
79+
extern inline bool aws_cpu_has_clmul_cached();
80+
extern inline bool aws_cpu_has_sse42_cached();
81+
extern inline bool aws_cpu_has_avx512_cached();
82+
extern inline bool aws_cpu_has_vpclmulqdq_cached();
8383

8484
#endif /* AWS_CHECKSUMS_PRIVATE_CRC_UTIL_H */

source/checksums.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,28 @@ static void s_init_detection_cache() {
4242
s_detected_vpclmulqdq = aws_cpu_has_feature(AWS_CPU_FEATURE_VPCLMULQDQ);
4343
}
4444

45-
static bool aws_cpu_has_clmul_cached() {
45+
extern inline bool aws_cpu_has_clmul_cached() {
4646
if (AWS_UNLIKELY(!s_detection_performed)) {
4747
s_init_detection_cache();
4848
}
4949
return s_detected_clmul;
5050
}
5151

52-
static bool aws_cpu_has_sse42_cached() {
52+
extern inline bool aws_cpu_has_sse42_cached() {
5353
if (AWS_UNLIKELY(!s_detection_performed)) {
5454
s_init_detection_cache();
5555
}
5656
return s_detected_sse42;
5757
}
5858

59-
static bool aws_cpu_has_avx512_cached() {
59+
extern inline bool aws_cpu_has_avx512_cached() {
6060
if (AWS_UNLIKELY(!s_detection_performed)) {
6161
s_init_detection_cache();
6262
}
6363
return s_detected_avx512;
6464
}
6565

66-
static bool aws_cpu_has_vpclmulqdq_cached() {
66+
extern inline bool aws_cpu_has_vpclmulqdq_cached() {
6767
if (AWS_UNLIKELY(!s_detection_performed)) {
6868
s_init_detection_cache();
6969
}

0 commit comments

Comments
 (0)