@@ -339,13 +339,14 @@ static inline bool array_container_remove(array_container_t *arr,
339339}
340340
341341/* Check whether x is present. */
342- static croaring_really_inline bool array_container_contains (const array_container_t *arr, uint16_t pos) {
342+ croaring_really_inline bool array_container_contains (
343+ const array_container_t *arr, uint16_t pos) {
343344 const int32_t gap = 16 ;
344345 const uint16_t *carr = arr->array ;
345346 int32_t cardinality = arr->cardinality ;
346347 if (cardinality < gap) {
347- for (int32_t j = 0 ; j < cardinality; j++) {
348- if (carr[j] >= pos) return carr[j] == pos;
348+ for (int32_t j = 0 ; j < cardinality; j++) {
349+ if (carr[j] >= pos) return carr[j] == pos;
349350 }
350351 return false ;
351352 }
@@ -365,7 +366,8 @@ static croaring_really_inline bool array_container_contains(const array_containe
365366 uint16x8_t needle = vdupq_n_u16 (pos);
366367 uint16x8_t v0 = vld1q_u16 (blk);
367368 uint16x8_t v1 = vld1q_u16 (blk + 8 );
368- uint16x8_t hit = vorrq_u16 (vceqq_u16 (v0, needle), vceqq_u16 (v1, needle));
369+ uint16x8_t hit =
370+ vorrq_u16 (vceqq_u16 (v0, needle), vceqq_u16 (v1, needle));
369371 return vmaxvq_u16 (hit) != 0 ;
370372#elif defined(CROARING_IS_X64)
371373 __m128i needle = _mm_set1_epi16 ((short )pos);
@@ -375,15 +377,16 @@ static croaring_really_inline bool array_container_contains(const array_containe
375377 _mm_cmpeq_epi16 (v1, needle));
376378 return _mm_movemask_epi8 (hit) != 0 ;
377379#else
378- // SWAR fallback: compare 16 values in parallel using bitwise operations.
380+ // SWAR fallback: compare 16 values in parallel using bitwise
381+ // operations.
379382 uint64_t broadcast = 0x0001000100010001ULL * pos;
380- const uint64_t ones = 0x0001000100010001ULL ;
383+ const uint64_t ones = 0x0001000100010001ULL ;
381384 const uint64_t highs = 0x8000800080008000ULL ;
382385
383386 uint64_t w0, w1, w2, w3;
384- memcpy (&w0, blk, sizeof (uint64_t ));
385- memcpy (&w1, blk + 4 , sizeof (uint64_t ));
386- memcpy (&w2, blk + 8 , sizeof (uint64_t ));
387+ memcpy (&w0, blk, sizeof (uint64_t ));
388+ memcpy (&w1, blk + 4 , sizeof (uint64_t ));
389+ memcpy (&w2, blk + 8 , sizeof (uint64_t ));
387390 memcpy (&w3, blk + 12 , sizeof (uint64_t ));
388391
389392 // XOR: a lane is zero iff that element equals x
0 commit comments