In powerpc table, fix macros los() and his().
authorGeorge Koehler <xkernigh@netscape.net>
Sat, 15 Oct 2016 03:59:26 +0000 (23:59 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Sat, 15 Oct 2016 03:59:26 +0000 (23:59 -0400)
commit29cb008faa794a5a06b0ddf08906b34daaa54beb
tree428df8c26bc8cc3747af1eab6ad579266d824a80
parent65c2a8a0aefca014278b0dd8c3ff6ec9d66ccfa8
In powerpc table, fix macros los() and his().

Change the operator in his() from a - minus to a + plus.  When los(n)
becomes negative, then his(n) needs to add 0x10000, not subtract it.

Also change los(n) to do the sign extension, because smalls(los(n))
should be true, not false.

Also change hi(n) and lo(n) to wrap n in parentheses, as (n), because
these are macros and n might still contain operators.
mach/powerpc/ncg/table