commit | aac5f4514f71d04ac3dcb8b923209781895d7ff2 | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <[email protected]> | Tue Feb 10 10:41:47 2015 -0200 |
committer | Lucas De Marchi <[email protected]> | Tue Feb 10 10:43:44 2015 -0200 |
tree | 48292b9079a0e8989d94aa0cf0c5806b965cbdd9 | |
parent | 14c3244f04002380d94903b661b93185c158077b [diff] |
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.