kmod/shared
Lucas De Marchi aac5f4514f shared: add helper function to add and check for overflow
Use _builtin_uaddll_overflow/_builtin_uaddl_overflow when available,
abstracting the type to use it with uint64_t.

Otherwise fallback to the implementation as added in 67466f2 ("Prevent
offset + size overflow.").

This also adds the tests for this new helper in the testsuite.
2015-02-10 10:43:44 -02:00
..
.gitignore Move generic util functions to shared directory 2014-10-03 00:33:25 -03:00
array.c Fix includes after change to build-sys 2015-01-02 12:41:01 -02:00
array.h Move array implementation to shared directory 2014-10-03 00:33:25 -03:00
hash.c Remove FSF mailing address 2014-12-25 23:41:34 -02:00
hash.h Move hash implementation to shared directory 2014-10-03 00:40:11 -03:00
macro.h shared: add STRINGFY macro 2015-01-14 14:32:09 -02:00
missing.h Move missing.h to shared directory 2014-10-03 00:31:10 -03:00
strbuf.c Remove FSF mailing address 2014-12-25 23:41:34 -02:00
strbuf.h shared: rename prefixes of strbuf functions 2014-10-11 13:25:51 -03:00
util.c util: remove dead code in freadline_wrapped 2015-01-21 10:18:44 -02:00
util.h shared: add helper function to add and check for overflow 2015-02-10 10:43:44 -02:00