Skip to content

Commit 5f24a1f

Browse files
address feedback
1 parent 11b467d commit 5f24a1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/aws/checksums/private/crc_util.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extern bool s_detected_avx512;
8989
extern bool s_detected_clmul;
9090
extern bool s_detected_vpclmulqdq;
9191

92-
static inline void s_init_detection_cache(void) {
92+
static inline void aws_init_detection_cache(void) {
9393
s_detected_clmul = aws_cpu_has_feature(AWS_CPU_FEATURE_CLMUL);
9494
s_detected_sse42 = aws_cpu_has_feature(AWS_CPU_FEATURE_SSE_4_2);
9595
s_detected_avx512 = aws_cpu_has_feature(AWS_CPU_FEATURE_AVX512);
@@ -99,28 +99,28 @@ static inline void s_init_detection_cache(void) {
9999

100100
static inline bool aws_cpu_has_clmul_cached(void) {
101101
if (AWS_UNLIKELY(!s_detection_performed)) {
102-
s_init_detection_cache();
102+
aws_init_detection_cache();
103103
}
104104
return s_detected_clmul;
105105
}
106106

107107
static inline bool aws_cpu_has_sse42_cached(void) {
108108
if (AWS_UNLIKELY(!s_detection_performed)) {
109-
s_init_detection_cache();
109+
aws_init_detection_cache();
110110
}
111111
return s_detected_sse42;
112112
}
113113

114114
static inline bool aws_cpu_has_avx512_cached(void) {
115115
if (AWS_UNLIKELY(!s_detection_performed)) {
116-
s_init_detection_cache();
116+
aws_init_detection_cache();
117117
}
118118
return s_detected_avx512;
119119
}
120120

121121
static inline bool aws_cpu_has_vpclmulqdq_cached(void) {
122122
if (AWS_UNLIKELY(!s_detection_performed)) {
123-
s_init_detection_cache();
123+
aws_init_detection_cache();
124124
}
125125
return s_detected_vpclmulqdq;
126126
}

source/checksums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void aws_checksums_library_init(struct aws_allocator *allocator) {
2020

2121
aws_common_library_init(allocator);
2222

23-
(void)aws_cpu_has_clmul_cached(); /* warm up the cache */
23+
aws_init_detection_cache();
2424
aws_checksums_crc32_init();
2525
aws_checksums_crc64_init();
2626
}

0 commit comments

Comments
 (0)