By: Linus Torvalds (torvalds.delete@this.linux-foundation.org), February 27, 2013 11:22 am
Room: Moderated Discussions
David Hess (davidwhess.delete@this.gmail.com) on February 26, 2013 11:01 pm wrote:
>
> I still regularly use auxiliary carry and parity if available. The only reason I no longer
> use them with x86 is that x86 no longer exists in the embedded space I work in.
What kind of odd code do you write where auxiliary carry makes sense? Even if you do bcd, I can't imagine that you can't do it better than that using vectors (or even just 32/64 bits at a time using perfectly normal arithmetic and some bit tricks).
Is there some other nefarious use of the AC flag than bcd?
Parity claculations I can kind of see still being used in legacy communication protocols, but ..
Linus
>
> I still regularly use auxiliary carry and parity if available. The only reason I no longer
> use them with x86 is that x86 no longer exists in the embedded space I work in.
What kind of odd code do you write where auxiliary carry makes sense? Even if you do bcd, I can't imagine that you can't do it better than that using vectors (or even just 32/64 bits at a time using perfectly normal arithmetic and some bit tricks).
Is there some other nefarious use of the AC flag than bcd?
Parity claculations I can kind of see still being used in legacy communication protocols, but ..
Linus