Skip to content

Commit 40c36b4

Browse files
committed
More fixes after merging develop into this branch.
1 parent bd3586b commit 40c36b4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ext/oj/dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void SIMD_TARGET initialize_sse42(void) {
243243

244244
#define SIMD_TARGET
245245

246-
#endif /* OJ_USE_SSE4_2 */
246+
#endif /* HAVE_SIMD_SSE4_2 */
247247

248248
inline static size_t hibit_friendly_size(const uint8_t *str, size_t len) {
249249
#ifdef HAVE_SIMD_NEON
@@ -264,7 +264,7 @@ inline static size_t hibit_friendly_size(const uint8_t *str, size_t len) {
264264

265265
size_t total = size + calculate_string_size(str, len - i, hibit_friendly_chars);
266266
return total;
267-
#elif defined(OJ_USE_SSE4_2)
267+
#elif defined(HAVE_SIMD_SSE4_2)
268268
if (len >= sizeof(__m128i)) {
269269
if (hibit_friendly_size_simd != NULL) {
270270
return hibit_friendly_size_simd(str, len);
@@ -1102,7 +1102,7 @@ void oj_dump_cstr(const char *str, size_t cnt, bool is_sym, bool escape1, Out ou
11021102
#ifdef HAVE_SIMD_NEON
11031103
uint8x16x4_t *cmap_neon = NULL;
11041104
int neon_table_size = 0;
1105-
#elif defined(OJ_USE_SSE4_2)
1105+
#elif defined(HAVE_SIMD_SSE4_2)
11061106
__m128i *cmap_sse42 = NULL;
11071107
int sse42_tab_size;
11081108
#endif /* HAVE_SIMD_NEON */

ext/oj/oj.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ void Init_oj(void) {
20872087
initialize_neon();
20882088
#endif /* HAVE_SIMD_NEON */
20892089

2090-
#ifdef OJ_USE_SSE4_2
2090+
#ifdef HAVE_SIMD_SSE4_2
20912091
initialize_sse42();
2092-
#endif /* OJ_USE_SSE4_2 */
2092+
#endif /* HAVE_SIMD_SSE4_2 */
20932093
}

0 commit comments

Comments
 (0)