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

[XLA] Optimize division/remainder by a power of 2

X / Y => X >> log_2(y)
X % Y => X & (Y-1)

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