basic + fundamental: Clean up includes

Split out of #37344.
This commit is contained in:
Daan De Meyer
2025-05-25 10:06:07 +02:00
parent e6e6131a2c
commit 0c15577abe
262 changed files with 628 additions and 1207 deletions
+9 -1
View File
@@ -21,8 +21,8 @@
#include <stdio.h>
#include "macro.h"
#include "siphash24.h"
#include "string-util.h"
#include "unaligned.h"
static uint64_t rotate_left(uint64_t x, uint8_t b) {
@@ -152,6 +152,10 @@ void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) {
}
}
void siphash24_compress_string(const char *in, struct siphash *state) {
siphash24_compress_safe(in, strlen_ptr(in), state);
}
uint64_t siphash24_finalize(struct siphash *state) {
uint64_t b;
@@ -199,3 +203,7 @@ uint64_t siphash24(const void *in, size_t inlen, const uint8_t k[static 16]) {
return siphash24_finalize(&state);
}
uint64_t siphash24_string(const char *s, const uint8_t k[static 16]) {
return siphash24(s, strlen(s) + 1, k);
}