News for hackers. Stuff that matters.
Re:The radix 2^51 trick by erichocean on Tuesday November 22, 2022 @12:29PM (#33708360)
Well-written, thanks!
Re:The radix 2^51 trick by tromp on Tuesday November 22, 2022 @03:58PM (#33711411)
This article may give some reassurance to people worried about RISC-V not having an add with carry instruction; it's not quite as useful as it appears at first sight.
Re:The radix 2^51 trick by dragontamer on Tuesday November 22, 2022 @04:02PM (#33711471)
I believe the general name of this trick is "carry save addition".

https://en.wikipedia.org/wiki/Carry-save_adder

Re:The radix 2^51 trick by nickdothutton on Tuesday November 22, 2022 @04:55PM (#33712085)
The sort of operation familiar to Z80 programmers back in the day.
Re:The radix 2^51 trick by bsder on Tuesday November 22, 2022 @07:11PM (#33713346)
I don't think that's true.

ADC (add with carry) was just fine on the 8080, Z80, 6502, 6800 generation sicne memory was the same speed as CPU and everything executed in a single cycle. I mean, you even had instructions like DAA (Decimal Adjust Accumulator) which were just fine for doing BCD arithmetic.

You only benefit from tricks like these when you get wide dispatch, speculative execution processors.

Re:The radix 2^51 trick by 1letterunixname on Tuesday November 22, 2022 @10:00PM (#33714621)
There are many such tricks in the book Hacker's Delight. It's basically an encyclopedia of tricks.