Fix unsigned_abs function on Unix (#8805)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 5 Jan 2017 01:37:25 +0000 (02:37 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Jan 2017 01:37:25 +0000 (02:37 +0100)
commitd2daeccabf5c64c67a080928fc48a4d18d0464f9
treed14dafe47308f6ae81c624dadf42676449aa24a6
parentd200352c3567f77020e3eb36706fa9484bd30bf6
Fix unsigned_abs function on Unix (#8805)

The unsigned_abs function in jit.h is implemented using labs function.
However labs has 32 bit argument / result, while the unsigned_abs expects
it to be 64 bit.
The correct function to use for FEATURE_PAL is llabs. But since we now have
abs overload for __int64 in pal.h, we can just remove the #ifdef for FEATURE_PAL
and use the same implementation for both Unix and Windows.
src/jit/jit.h