]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use __builtin_*_overflow for isc_time_{add,subtract}()
authorOndřej Surý <ondrej@isc.org>
Wed, 20 Oct 2021 09:22:52 +0000 (11:22 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 21 Oct 2021 07:31:01 +0000 (09:31 +0200)
commit2b147ac35860dcacf096d2caca9bd855a0e04bc8
tree1c4a9d43b3d0e91eaf4a6ca89bf1aafed2acfcdc
parent8c05f12bc8abd27808abc7e21fffef88d2922e8e
Use __builtin_*_overflow for isc_time_{add,subtract}()

Use the __builtin_uadd_overflow() and __builtin_usub_overflow() for
overflow checks in isc_time_add() and isc_time_subtract().  This
generates more efficient and safe code.
configure.ac
lib/isc/time.c