Skip to content
Commit 12bdd427 authored by Craig Topper's avatar Craig Topper
Browse files

[APFloat] Improve asserts in isSignificandAllOnes and isSignificandAllZeros so...

[APFloat] Improve asserts in isSignificandAllOnes and isSignificandAllZeros so they protect shift operations from undefined behavior.

For example, the assert in isSignificandAllZeros allowed NumHighBits
to be integerPartWidth. But since it is used directly as a shift amount
it must be less than integerPartWidth.
parent d4a1db4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment