diff options
author | David Robillard <d@drobilla.net> | 2021-01-12 15:18:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-12 15:20:18 +0100 |
commit | 5bc9b6e08b2555f2f1a9fe65db266dc97f4a50ba (patch) | |
tree | a4ef1e717776dda2cfcebc031c74bda583f5b4d7 /src/zix/digest.h | |
parent | 7962b09d9d16cecfa64338718c74b89d11c34b73 (diff) | |
download | sord-5bc9b6e08b2555f2f1a9fe65db266dc97f4a50ba.tar.gz sord-5bc9b6e08b2555f2f1a9fe65db266dc97f4a50ba.tar.bz2 sord-5bc9b6e08b2555f2f1a9fe65db266dc97f4a50ba.zip |
Update zix
This fixes, once again, a potential BTree crash with GCC 10 which got lost
somewhere along the way.
Diffstat (limited to 'src/zix/digest.h')
-rw-r--r-- | src/zix/digest.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/zix/digest.h b/src/zix/digest.h index 74d13f9..1fde77a 100644 --- a/src/zix/digest.h +++ b/src/zix/digest.h @@ -29,7 +29,8 @@ extern "C" { /** Return an initial empty digest value. */ -ZIX_CONST_API uint32_t +ZIX_CONST_API +uint32_t zix_digest_start(void); /** @@ -37,7 +38,8 @@ zix_digest_start(void); This can be used for any size or alignment. */ -ZIX_PURE_API uint32_t +ZIX_PURE_API +uint32_t zix_digest_add(uint32_t hash, const void* buf, size_t len); /** @@ -45,7 +47,8 @@ zix_digest_add(uint32_t hash, const void* buf, size_t len); Both `buf` and `len` must be evenly divisible by 8 (64 bits). */ -ZIX_PURE_API uint32_t +ZIX_PURE_API +uint32_t zix_digest_add_64(uint32_t hash, const void* buf, size_t len); /** @@ -53,11 +56,12 @@ zix_digest_add_64(uint32_t hash, const void* buf, size_t len); This hashes the value of the pointer itself, and does not dereference `ptr`. */ -ZIX_CONST_API uint32_t +ZIX_CONST_API +uint32_t zix_digest_add_ptr(uint32_t hash, const void* ptr); #ifdef __cplusplus -} /* extern "C" */ +} /* extern "C" */ #endif -#endif /* ZIX_DIGEST_H */ +#endif /* ZIX_DIGEST_H */ |