You might be thinking about a different book? Hacker's Delight is mostly about bit fiddling (counting bits, finding the longest string of 1-bits, multiplication and division, Gray code, CRC, the famous approximate reciprocal square root) and such.
Re:Hacker’s Delight (2012)
by EdwardCoffin on Sunday August 07, 2022 @03:53PM
(#32379286)
These are just the kinds of things that an optimizing compiler can use, so would be quite useful for reverse engineering the product of an optimizing compiler to figure out what it is doing.
yes. the book could definitively be named differently. I skimmed through the free pages and I came to the same conclusion. Probably a great book, but not for me since I am a higher level developer that benefit from the outcome of books like these.
When I was doing a lot of reverse engineering and vulnerability research work this book gave some really great insight into some of the compiler optimizations that I would come across. Highly recommended for anyone trying to take their skills to the next level.