
Java技术文章
lsmvictor
成功了再说
展开
-
位操作技巧
检测一个无符号数是不为2^n-1(^为幂): x&(x+1)将最右侧0位改为1位: x | (x+1)二进制补码运算公式:-x = ~x + 1 = ~(x-1)~x = -x-1 -(~x) = x+1~(-x) = x-1x+y = x - ~y - 1 = (x|y)+(x&y) x-y = x + ~y + 1 = (x|~y)-(~x&y) x^y = (x|y)-(x&y)x原创 2008-09-19 17:53:00 · 522 阅读 · 0 评论 -
linux Grep讲得比较好的文章
转一篇讲Grep的文章,比较好 转自:http://www.panix.com/~elflord/unix/grep.html Why grep ? Back to top grep is not only one of the most useful commands, but also, mastery of grep opens the gates to master转载 2011-12-23 16:21:56 · 484 阅读 · 0 评论