Looks like more code here for abs.c
https://bitbucket.org/pdclib/pdclib/src/95be959efe2ed2f36104...
than musl:
https://bitbucket.org/pdclib/pdclib/src/95be959efe2ed2f36104...
than musl:
glibc:
> return ( j >= 0 ) ? j : -j;
Musl:
> return a>0 ? a : -a;
I guess looking at the definition: https://en.wikipedia.org/wiki/Absolute_value#Real_numbers I would say `( j >= 0 ) ? j : -j` is more accurate, although in practical terms is the same result.