HomeFreeBSD

pow(3): Workaround possible signed shift Undefined Behavior.

Description

pow(3): Workaround possible signed shift Undefined Behavior.

j is int32_t and thus j<<31 is undefined if j==1.

Hinted by: muusl-lib (git 688d3da0f1730daddbc954bbc2d27cc96ceee04c)
Discussed with: freebsd-numerics (kargl)

Details

Committed
pfgJan 7 2019, 5:35 PM
Parents
rS342850: Add a missing \n to a bootverbose printf.
Branches
Unknown
Tags
Unknown