#include <limits.h>
#include <stdint.h>
Go to the source code of this file.
◆ CANON_ELEMENT
#define CANON_ELEMENT |
( |
|
c | ) |
c |
◆ CMP_FUNC
◆ LONG_NEEDLE_THRESHOLD
#define LONG_NEEDLE_THRESHOLD 32U |
◆ MAX
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a < b) ? (b) : (a)) |
◆ critical_factorization()
static size_t critical_factorization |
( |
const unsigned char * |
needle, |
|
|
size_t |
needle_len, |
|
|
size_t * |
period |
|
) |
| |
|
static |
◆ two_way_long_needle()
static RETURN_TYPE two_way_long_needle |
( |
const unsigned char * |
haystack, |
|
|
size_t |
haystack_len, |
|
|
const unsigned char * |
needle, |
|
|
size_t |
needle_len |
|
) |
| |
|
static |
◆ two_way_short_needle()
static RETURN_TYPE two_way_short_needle |
( |
const unsigned char * |
haystack, |
|
|
size_t |
haystack_len, |
|
|
const unsigned char * |
needle, |
|
|
size_t |
needle_len |
|
) |
| |
|
static |