Skip to content

Commit 47a5d21

Browse files
author
fengluo
committed
string_fastsearch.h:
format functions
1 parent 4c6f2e5 commit 47a5d21

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

numpy/_core/src/umath/string_fastsearch.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
* @error If LONG_BIT is smaller than 32, a compilation error will occur.
5858
*/
5959
#if LONG_BIT >= 128
60-
#define STRINGLIB_BLOOM_WIDTH 128
60+
#define STRINGLIB_BLOOM_WIDTH 128
6161
#elif LONG_BIT >= 64
62-
#define STRINGLIB_BLOOM_WIDTH 64
62+
#define STRINGLIB_BLOOM_WIDTH 64
6363
#elif LONG_BIT >= 32
64-
#define STRINGLIB_BLOOM_WIDTH 32
64+
#define STRINGLIB_BLOOM_WIDTH 32
6565
#else
66-
#error "LONG_BIT is smaller than 32"
66+
#error "LONG_BIT is smaller than 32"
6767
#endif
6868

6969
/**
@@ -77,7 +77,7 @@
7777
* @param ch The character to add to the bloom filter mask.
7878
*/
7979
#define STRINGLIB_BLOOM_ADD(mask, ch) \
80-
((mask |= (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1)))))
80+
((mask |= (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1)))))
8181

8282
/**
8383
* @brief Checks if a character is present in the bloom filter mask.
@@ -90,7 +90,7 @@
9090
* @return 1 if the character is present, 0 otherwise.
9191
*/
9292
#define STRINGLIB_BLOOM(mask, ch) \
93-
((mask & (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1)))))
93+
((mask & (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1)))))
9494

9595
#define FORWARD_DIRECTION 1 ///< Defines the forward search direction
9696
#define BACKWARD_DIRECTION (-1) ///< Defines the backward search direction

0 commit comments

Comments
 (0)