Commit e40ffed1 authored by David Majnemer's avatar David Majnemer Committed by TensorFlower Gardener
Browse files

[TF2XLA] Add support for nextafter

This implementation matches the C++ function's behavior:
- nextafter(-0, +0) -> +0
- nextafter(+0, -0) -> -0
- nextafter(-0, -0) -> -0
- nextafter(+0, +0) -> +0

Regardless of the current FTZ or DAZ mode, this implementation will return a
subnormal if "from" is 0 but "to" is non-zero.

PiperOrigin-RevId: 230806902
parent 7c929bf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment