]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Move XXH3 macro from haproxy/compat.h to haproxy/xxhash.h
authorTim Duesterhus <tim@bastelstu.be>
Sat, 11 Sep 2021 18:29:46 +0000 (20:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Sep 2021 18:37:50 +0000 (20:37 +0200)
This moves all the xxhash functionality into a single location.

see d5fc8fcb86eb99831626051b3055bea7ca93a074

include/haproxy/compat.h
include/haproxy/xxhash.h

index 72dc3dc4f9b38e2364ca68e9613a567d9088571c..886b7a3650fd5d199d1ae402b4b895eb9fa83528 100644 (file)
@@ -288,13 +288,6 @@ typedef struct { } empty_t;
  */
 #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 */
 
 /*
index 83a2fb71c5d8fd7fa92ba8e1a034e01ce61232e0..cd333e645ec680b1913daf1ac83612cad702c9a2 100644 (file)
 
 #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