On Wed, 8 Mar 2023 01:30:58 GMT, Joe Darcy <[email protected]> wrote:
> Quick port of IEEEremainder; sorry for missing this earlier. Will add
> targeted tests in a follow-up fix.
src/java.base/share/classes/java/lang/FdLibm.java line 3367:
> 3365: /* purge off exception values */
> 3366: if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not
> finite */
> 3367: ((hy|((ly | -ly) >> 31))>0x7ff00000)) /* or y is NaN
> */
Should be `>>>`
src/java.base/share/classes/java/lang/FdLibm.java line 3436:
> 3434: if((hx|lx)==0) /* return sign(x)*0 */
> 3435: return Zero[sx>>>31]; // unsigned shift
> 3436: while(Integer.compareUnsigned(hx, 0x00100000) < 0) {
> /* normalize x */
Should be `hx < 0x00100000`
-------------
PR: https://git.openjdk.org/jdk/pull/12915