1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Minor changes to SHA hash functions

This commit is contained in:
Ondrej Zajicek (work)
2015-11-24 13:47:28 +01:00
parent 12d752ef24
commit 5126380bea
7 changed files with 518 additions and 521 deletions

View File

@@ -30,6 +30,7 @@
#define MAX(a,b) MAX_(a,b)
#endif
#define U64(c) UINT64_C(c)
#define ABS(a) ((a)>=0 ? (a) : -(a))
#define DELTA(a,b) (((a)>=(b))?(a)-(b):(b)-(a))
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))