Lack of CarryOut in C
Posted Apr 2, 2013 18:45 UTC (Tue) by jreiser
In reply to: McIntyre: Scanning for assembly code in Free Software packages
Parent article: McIntyre: Scanning for assembly code in Free Software packages
the inability of C code to take advantage of the carry bit
Amen. However, sometimes ((unsigned)(x+y) < (unsigned)x) plus a comment is good enough (courtesy of MIPS, which has no Carry in hardware.)
That still isn't good enough for decoding a big-endian bitstream, which wants both CarryOut and Zero after ((x<<=1)|CarryIn).
to post comments)