CLEANUP: Move XXH3 macro from haproxy/compat.h to haproxy/xxhash.h

This moves all the xxhash functionality into a single location.

see d5fc8fcb86eb99831626051b3055bea7ca93a074
This commit is contained in:
Tim Duesterhus 2021-09-11 20:29:46 +02:00 committed by Willy Tarreau
parent a8bfb4d135
commit cf6f574872
2 changed files with 7 additions and 7 deletions

View File

@ -288,13 +288,6 @@ typedef struct { } empty_t;
*/ */
#define MAX_SEND_FD 253 #define MAX_SEND_FD 253
/* Make the new complex name for the xxhash function easier to remember
* and use.
*/
#ifndef XXH3
#define XXH3(data, len, seed) XXH3_64bits_withSeed(data, len, seed)
#endif
#endif /* _HAPROXY_COMPAT_H */ #endif /* _HAPROXY_COMPAT_H */
/* /*

View File

@ -42,4 +42,11 @@
#include <import/xxhash.h> #include <import/xxhash.h>
/* Make the new complex name for the xxhash function easier to remember
* and use.
*/
#ifndef XXH3
#define XXH3(data, len, seed) XXH3_64bits_withSeed(data, len, seed)
#endif
#endif #endif