3 ms·
Indeed. The x86 equivalent gem (http://dflund.se/~john_e/gems/gem0001.html http://dflund.se/~john_e/gems/gem0001.html) makes a point to note that. Odd that it's
by mattst88 11y ago
Indeed. The x86 equivalent gem (http://dflund.se/~john_e/gems/gem0001.html http://dflund.se/~john_e/gems/gem0001.html) makes a point to note that. Odd that it's not mentioned on the m68k page.
For what it's worth, my copy of the C11 spec says
The abs, labs, and llabs functions compute the absolute value of an integer j. If the result cannot be represented, the behavior is undefined. 304)
304) The absolute value of the most negative number cannot be represented in two’s complement.