CSAPP chapter2 记录(bit_level_coding)
摘要:
p_154//5x/8define MSB_BIT (~(~0U >> 1)) int mul5div8(int val){ int sign = (val & MSB_BIT) == MSB_BIT; //取符号位 int bias = (7 + !sign) & 7; int q = val >> 3; int r = val - (q > 3; //向零取整 q = (q > 31; ... 阅读全文
posted @ 2013-07-13 12:33 阿加 阅读(615) 评论(0) 推荐(0) 编辑