summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/fp_lib.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-10-10 18:54:26 +0000
committerCraig Topper <craig.topper@gmail.com>2015-10-10 18:54:26 +0000
commit798cc60ad984c44e7e366d85a6c5c3fd8d10488d (patch)
tree00f20c550ebb80d8d38fa28ef6358809778806d6 /compiler-rt/lib/builtins/fp_lib.h
parent114aae4ac7e4dd6958bffb66d7a9a5cbfe12cc09 (diff)
downloadbcm5719-llvm-798cc60ad984c44e7e366d85a6c5c3fd8d10488d.tar.gz
bcm5719-llvm-798cc60ad984c44e7e366d85a6c5c3fd8d10488d.zip
In isUIntN, make sure N is less than 64 before using in a shift to avoid undefined behavior. Also change it to use the same formula as the template version which I think results in less math in compiled code.
llvm-svn: 249951
Diffstat (limited to 'compiler-rt/lib/builtins/fp_lib.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud