Fix undefined behavior in xnextafterf (#357)
C standard does not define how sign bit should be handled during left shift, which triggers UBSAN runtime error: ``` src/libm/sleefsimdsp.c:3031:101: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' ``` Discovered while working on https://github.com/pytorch/pytorch/pull/48275
Loading
Please register or sign in to comment