Searched refs:trunc_mod (Results 1 – 3 of 3) sorted by relevance
54 T trunc_mod = mod_func(input1, input2); in FloorMod() local56 ? trunc_mod in FloorMod()57 : mod_func(trunc_mod + input2, input2); in FloorMod()
157 auto trunc_mod = xla::Rem(x, y); in FloorModImpl() local158 return xla::Select(same_sign, trunc_mod, xla::Rem(xla::Add(trunc_mod, y), y)); in FloorModImpl()
429 T trunc_mod = std::fmod(x, y);430 return (x < T(0)) == (y < T(0)) ? trunc_mod : std::fmod(trunc_mod + y, y);449 T trunc_mod = x % y;450 return (x < T(0)) == (y < T(0)) ? trunc_mod : (trunc_mod + y) % y;