aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 01:05:44 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 01:05:44 +0200
commitcf0f05362e71c189b8052bbfddd2f270f907041e (patch)
tree371ba96e6d0cdda94a5ba0f07628b1d1ea0c5960 /common.h
parentFix makefile (diff)
downloadlibhashsum-cf0f05362e71c189b8052bbfddd2f270f907041e.tar.gz
libhashsum-cf0f05362e71c189b8052bbfddd2f270f907041e.tar.bz2
libhashsum-cf0f05362e71c189b8052bbfddd2f270f907041e.tar.xz
Standardise how to interpret a partial byte
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 117972b..e70d922 100644
--- a/common.h
+++ b/common.h
@@ -11,6 +11,12 @@
#include <string.h>
+#if defined(__GNUC__)
+__attribute__((__const__))
+#endif
+uint8_t libhashsum_reverse_byte__(uint8_t);
+
+
#ifdef TEST
# include <stdlib.h>
# include <stdio.h>