cpu高效编程技术内容摘要:

pect((expr) != 0, 1) define unlikely(expr) expect((expr) != 0, 0) while likely(ipmatchlimit(STEPSIZE1)) { … } 16 The Blocking Technique 17 The Blocking Technique // Increasing memory usage improves pression ratio // Reduced memory usage can improve speed, due to cache effect // Default value is 14, for 16KB, which nicely fits into Intel x86 L1 cache define MEMORY_USAGE 14 define HASH_LOG (MEMORY_USAGE2) define HASHTABLESIZE (1 HASH_LOG) struct refTables { HTYPE hashTable[HASHTABLESIZE]。 }。 18 memchr magic_bits = ((unsigned long int) 0x7efefefe 32) | 0xfefefeff。 /* Set up a longword, each of whose bytes is C. */ charmask = c | (c 8)。 charmask |= charmask 16。 charmask |= charmask 32。 /* Instead of the traditional loop which tests each character, we will test a longword at a time. The tricky part i。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。