You are a stupid programmer, you can't have that
Adam D Ruppe
destructionator at gmail.com
Mon Aug 9 23:08:12 UTC 2021
On Monday, 9 August 2021 at 22:57:22 UTC, claptrap wrote:
> Since there's only ADD,SUB,MUL(IMUL),DIV(IDIV), it's about
> 50/50.
Well, mul is semi-agnostic. It only matters if you look at the
high word (which is frequently discarded anyway) and I believe
imul works either way. And there's also sar vs shr which are
slightly different, while sal and shl are identical.
> IIRC the overflow flag is actually just for catching the error,
> not for actual arithmetic, since if you're doing signed
> multiword arithmetic you only use a signed word at the top.
aye.
More information about the Digitalmars-d
mailing list