Branch
Hash :
a7cc3c03
Author :
Date :
2025-08-31T07:54:18
u64: avoid theoretical problem with >64-bit int * lib/u64.h: Include limits.h, for INT_MAX. Use uint64_t only if INT_MAX < UINT64_MAX, to avoid undefined behavior on theoretical platforms where adding two uint64_t expressions can have undefined behavior on signed integer overflow.
Description:
Unsigned integers with arithmetic modulo 2**64
Files:
lib/u64.h
lib/u64.c
Depends-on:
byteswap
extern-inline
bool
stdint-h
configure.ac:
Makefile.am:
lib_SOURCES += u64.c
Include:
"u64.h"
License:
LGPLv2+
Maintainer:
Paul Eggert