> >> Oh, I wasn't referring to any specific users. What I meant is that, > >> if we make abs64() generically available from host-utils, callers > >> could expect it to behave the same way as abs() in stdlib, for > >> example. > > > > That would be surprising, but do you think there are cases where that > > would be a bad surprise? > > > > I don't think anybody who is aware of the abs(INT_MIN), > > labs(LONG_MIN), and llabs(LLONG_MIN) edge cases actually _like_ that > > behaviour. > > > > If you really want to avoid surprises, providing a saner function with > > a different name seems better than trying to emulate the edge cases of > > abs()/labs()/llabs(). > > Agreed. See do_strtosz() for example.
I'll make this change when I submit the next version of this patch series. Thanks! -- Luis Pires Instituto de Pesquisas ELDORADO Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>