Breaking News
Engineer’s Bookshelf

Book Review: Hacker’s Delight by Henry S. Warren, Jr.

NO RATINGS
View Comments: Newest First | Oldest First | Threaded View
Max The Magnificent
User Rank
Blogger
re: Book Review: Hacker’s Delight by Henry S. Warren, Jr.
Max The Magnificent   4/11/2012 8:58:20 PM
NO RATINGS
Party Pooper :-)

Jerry.Brittingham
User Rank
Rookie
re: Book Review: Hacker’s Delight by Henry S. Warren, Jr.
Jerry.Brittingham   4/10/2012 7:12:41 AM
NO RATINGS
Having been "close to the metal" for over 30 years, I have to agree with Ross93.

nkkav
User Rank
Rookie
re: Book Review: Hacker’s Delight by Henry S. Warren, Jr.
nkkav   4/7/2012 9:00:34 PM
NO RATINGS
Hi Clive, thanks to the code from this book, I had shaped up a constant division routine generator: http://sourceforge.net/projects/kdiv/ The algorithms for such divisions work with the multiplicative inverse. For an x/N division, you have to multiply x with a representation of 1/N, followed by some adjustment steps. In any case, no more than 8 or 9 cycles are required for a 32-bit divide on small RISC targets (based on my own experimentation). Even the 64-bit multiply with 1/N can be avoided, if you reduce this constant multiplication via any of the known methods. Cheers, Nikolaos Kavvadias PS: Guess I'll be ordering a hardcopy from Amazon PS2: http://libdivide.com does the same, producing SSE2 code.

Ross93
User Rank
Rookie
re: Book Review: Hacker’s Delight by Henry S. Warren, Jr.
Ross93   4/6/2012 1:56:48 PM
NO RATINGS
As a caveat, I haven’t read the book, so this observation is based solely on the examples given. As a firmware engineer, I can appreciate the cleverness and elegance of these examples, however, in my opinion the ability to be able to read and maintain this would be a nightmare without (and probably with) extensive comments. Ross

antedeluvian
User Rank
Blogger
re: Book Review: Hacker’s Delight by Henry S. Warren, Jr.
antedeluvian   4/5/2012 6:42:00 PM
NO RATINGS
I don't know if the adjunct web site is mentioned in the latest edition, but just in case- http://hackersdelight.org/ Has additional info, and errata.

August Cartoon Caption Winner!
August Cartoon Caption Winner!
"All the King's horses and all the KIng's men gave up on Humpty, so they handed the problem off to Engineering."
5 comments
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Times on Twitter
EE Times Twitter Feed
Flash Poll
Radio
LATEST ARCHIVED BROADCAST
David Patterson, known for his pioneering research that led to RAID, clusters and more, is part of a team at UC Berkeley that recently made its RISC-V processor architecture an open source hardware offering. We talk with Patterson and one of his colleagues behind the effort about the opportunities they see, what new kinds of designs they hope to enable and what it means for today’s commercial processor giants such as Intel, ARM and Imagination Technologies.