News for hackers. Stuff that matters.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by flohofwoe on Tuesday January 31, 2023 @06:23AM (#34593802)
If only humans had 8 or 16 fingers instead of 10 ;)
Re:Understanding the x86's Decimal Adjust after Addition (DA... by ElectricalUnion on Tuesday January 31, 2023 @08:41AM (#34594869)
This reminds me of this: https://news.ycombinator.com/item?id=12720638

> Fun fact: you can count to hexadecimal on the fingers of one hand.

> The way it works is that each of your four fingers has four well-defined places on them: the three joints, plus the tip. You use your thumb to point at one of these. The first finger represents 1-4, the second 5-8, the third 9-12, the fourth 13-16. You count up and down by moving your thumb.

(...)

> As a special bonus: if you point to the fleshy pads of the fingers instead of the joints, you can use the same system for base 12.

Re:Understanding the x86's Decimal Adjust after Addition (DA... by dgacmu on Tuesday January 31, 2023 @09:10AM (#34595177)
Tough call deciding between this and just using your fingers as a 5 bit binary counter. Incrementing is sure a lot faster with this method at the cost of a bit.
Re:Understanding the x86's Decimal Adjust after Addition (DA... by tengwar2 on Thursday February 02, 2023 @08:19AM (#34626118)
The difficulty with that is that your ring finger is not completely independent of your pinkie due to the way the tendons are connected.