Hacker's Delight" "This is the first book that promises to tell the deep, dark secrets of computer arithmetic, and it delivers in spades. It contains every trick I knew plus many, many more. A godsend for library developers, compiler writers, and lovers of elegant hacks, it deserves a spot on your shelf right next to Knuth.""Josh Bloch" "When I first saw the title, I figured that the book must be either a cookbook for breaking into computers (unlikely) or some sort of compendium of little programming tricks. It's the latter, but it's thorough, almost encyclopedic, in its coverage." "Guy Steele These are the timesaving techniques relished by computer hackersthose devoted and persistent code developers who seek elegant and efficient ways to build better software. The truth is that much of the computer programmer's job involves a healthy mix of arithmetic and logic. In "Hacker's Delight," veteran programmer Hank Warren shares the tricks he has collected from his considerable experience in the worlds of application and system programming. Most of these techniques are eminently practical, but a few are included just because they are interesting and unexpected. The resulting work is an irresistible collection that will help even the most seasoned programmers better their craft. Topics covered include: A broad collection of useful programming tricks Small algorithms for common tasksPowerof2 boundaries and bounds checkingRearranging bits and bytesInteger division and division by constantsSome elementary functions on integersGray codeHilbert's spacefilling curveAnd even formulas for prime numbers! This book is for anyone who wants to create efficient code. "Hacker's Delight" will help you learn to program at a higher levelwell beyond what is generally taught in schools and training coursesand will advance you substantially further than is possible through ordinary selfstudy alone. 
What people are saying  Write a review
User ratings
5 stars 
 
4 stars 
 
3 stars 
 
2 stars 
 
1 star 

LibraryThing Review
User Review  worrydream  LibraryThingFirst of all, the book itself is incredible. The title was poorly chosen, unfortunately. The connotation of "hacker" in the public mind is somewhat different than the word's meaning forty years ago at ... Read full review
Contents
III  xv 
IV  xviii 
V  T1 
VI  T5 
VII  T6 
VIII  T7 
IX  T8 
X  T9 
LII  T56 
LIII  T57 
LIV  T60 
LV  T68 
LVI  T71 
LVII  T73 
LVIII  T78 
LIX  T80 
XII  20 
XIV  21 
XV  26 
XVI  33 
XVII  34 
XIX  35 
XX  36 
XXI  37 
XXII  38 
XXIII  41 
XXV  45 
XXVI  46 
XXVII  49 
XXVIII  51 
XXIX  54 
XXX  58 
XXXI  65 
XXXII  74 
XXXIII  77 
XXXIV  84 
XXXV  91 
XXXVI  96 
XXXVII  T1 
XXXVIII  T6 
XXXIX  T8 
XL  T16 
XLI  T22 
XLII  T27 
XLIII  T29 
XLIV  T32 
XLVI  T33 
XLVII  T37 
XLVIII  T40 
XLIX  T45 
L  T48 
LI  T55 
LX  T83 
LXI  T84 
LXII  T88 
LXIV  T89 
LXV  T90 
LXVI  T98 
LXVII  203 
LXVIII  211 
LXIX  212 
LXX  215 
LXXI  223 
LXXII  230 
LXXIII  232 
LXXIV  233 
LXXV  235 
LXXVI  237 
LXXVII  239 
LXXIX  241 
LXXX  244 
LXXXI  250 
LXXXII  252 
LXXXIII  255 
LXXXIV  256 
LXXXV  259 
LXXXVI  261 
LXXXVII  262 
LXXXVIII  265 
LXXXIX  269 
XC  271 
XCI  277 
XCII  283 
XCIV  287 
XCV  289 
XCVI  295 