Skip to content

Commit 8f372a2

Browse files
committed
Formatting.
1 parent f9c3768 commit 8f372a2

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ext/oj/dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ void oj_dump_cstr(const char *str, size_t cnt, bool is_sym, bool escape1, Out ou
12211221
#if defined(HAVE_SIMD_NEON)
12221222
bool use_simd = (cmap_neon != NULL && cnt >= (sizeof(uint8x16_t))) ? true : false;
12231223
#elif defined(OJ_USE_SSE4_2)
1224-
bool use_simd = (cmap_sse42 != NULL && cnt >= (sizeof(__m128i))) ? true : false;
1224+
bool use_simd = (cmap_sse42 != NULL && cnt >= (sizeof(__m128i))) ? true : false;
12251225
#endif
12261226

12271227
#ifdef HAVE_SIMD_NEON
@@ -1341,7 +1341,7 @@ void oj_dump_cstr(const char *str, size_t cnt, bool is_sym, bool escape1, Out ou
13411341
*out->cur++ = '"';
13421342
}
13431343
if (do_unicode_validation && 0 < str - orig && 0 != (0x80 & *(str - 1))) {
1344-
uint8_t c = (uint8_t) * (str - 1);
1344+
uint8_t c = (uint8_t)*(str - 1);
13451345
int i;
13461346
int scnt = (int)(str - orig);
13471347

ext/oj/simd.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515

1616
extern void initialize_sse42(void);
1717

18-
static inline __attribute__((target("sse4.2,ssse3"))) __m128i
19-
vector_lookup_sse42(__m128i input, __m128i *lookup_table, int tab_size) {
18+
static inline __attribute__((target("sse4.2,ssse3"))) __m128i vector_lookup_sse42(__m128i input,
19+
__m128i *lookup_table,
20+
int tab_size) {
2021
// Extract high 4 bits to determine which 16-byte chunk (0-15)
2122
__m128i hi_index = _mm_and_si128(_mm_srli_epi32(input, 4), _mm_set1_epi8(0x0F));
2223

0 commit comments

Comments
 (0)