Finding the average of two unsigned integers without overflow
> I find it amusing that the PowerPC, patron saint of ridiculous instructions, has an instruction whose name almost literally proclaims its ridiculousness: rldicl. (It stands for “rotate left doubleword by immediate and clear left”.)<p>I suspect the POWER team has a good sense of humor.  There's also the EIEIO instruction <a href="https://www.ibm.com/docs/en/aix/7.2?topic=set-eieio-enforce-in-order-execution-io-instruction" rel="nofollow">https://www.ibm.com/docs/en/aix/7.2?topic=set-eieio-enforce-...</a>