Commit Graph

16 Commits (23b1412d47f854b998172e95098087ae9e2efaba)

Author SHA1 Message Date
leitner 6cfc16fc40 add gcc 5 integer overflow intrinsics support to rangecheck.h
in the process, identify a gnarly problem that was not only not found by
  the test suite, there was a test testing for the wrong behavior!
leitner 4f1e1d300c make headers work in C++
add two more variable length integer encoding functions
leitner de36bc05f7 add __likely branch prediction hints
make inlining work in the face of gcc in non-gnu c99 mode
leitner 928bfe5c09 for installed header files, add comment saying where they came from
leitner 6941446a7c clang support
leitner a8a5e9a3d5 some valgrind de-noising
fix subtle typo in sub_of (David Sirovsky)
leitner 1b17f47def escape more in fmt_ldapescape
leitner d3d6c828a9 Turns out that shifting a negative signed int is undefined behavior in
C, too.  Use other mechanism in case gcc decides to abuse that, too.
leitner 3e559e8d89 remove a bogus gcc warning
leitner 47d2e25ba3 simplify some expressions
leitner 689de0e8e4 more brackets in macros (paranoia)
leitner d22de55cee add some int overflow check macros to rangecheck.h
leitner a85d569caa gcc 4.1 version of the code also works with other compilers, so make it
default and get rid of #ifdef hell
leitner a1215d9f0a use uintptr_t instead of size_t
leitner 3c291ea2a8 document adding io_block
add rangecheck install target to GNUmakefile
cosmetics in rangecheck.h
leitner dbd9fe1ea5 add rangecheck.h