File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 57
57
* @error If LONG_BIT is smaller than 32, a compilation error will occur.
58
58
*/
59
59
#if LONG_BIT >= 128
60
- #define STRINGLIB_BLOOM_WIDTH 128
60
+ #define STRINGLIB_BLOOM_WIDTH 128
61
61
#elif LONG_BIT >= 64
62
- #define STRINGLIB_BLOOM_WIDTH 64
62
+ #define STRINGLIB_BLOOM_WIDTH 64
63
63
#elif LONG_BIT >= 32
64
- #define STRINGLIB_BLOOM_WIDTH 32
64
+ #define STRINGLIB_BLOOM_WIDTH 32
65
65
#else
66
- #error "LONG_BIT is smaller than 32"
66
+ #error "LONG_BIT is smaller than 32"
67
67
#endif
68
68
69
69
/* *
77
77
* @param ch The character to add to the bloom filter mask.
78
78
*/
79
79
#define STRINGLIB_BLOOM_ADD (mask, ch ) \
80
- ((mask |= (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1 )))))
80
+ ((mask |= (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1 )))))
81
81
82
82
/* *
83
83
* @brief Checks if a character is present in the bloom filter mask.
90
90
* @return 1 if the character is present, 0 otherwise.
91
91
*/
92
92
#define STRINGLIB_BLOOM (mask, ch ) \
93
- ((mask & (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1 )))))
93
+ ((mask & (1UL << ((ch) & (STRINGLIB_BLOOM_WIDTH -1 )))))
94
94
95
95
#define FORWARD_DIRECTION 1 // /< Defines the forward search direction
96
96
#define BACKWARD_DIRECTION (-1 ) // /< Defines the backward search direction
You can’t perform that action at this time.
0 commit comments