2015年3月16日

摘要: http://baike.1688.com/doc/view-d1750791.htmlC语言中的“>>”和“>”和“=类型长度.那么实际上i,j移动的就是1位,也就是33%32后的余数.在gcc下是这个规则,别的编译器是不是都一样现在还不清楚. 总之左移就是: 丢弃最高位,0补最低位 再说右移... 阅读全文
posted @ 2015-03-16 17:20 沉淀2014 阅读(473) 评论(0) 推荐(0) 编辑
摘要: http://graphics.stanford.edu/~seander/bithacks.html#OperationCountingBit Twiddling HacksBy Sean Eron Andersonseander@cs.stanford.eduIndividually, thec... 阅读全文
posted @ 2015-03-16 14:28 沉淀2014 阅读(301) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/8637142/what-does-this-bit-manipulating-function-dounsigned long ccNextPOT(unsigned long x){ x = x - 1; x = x... 阅读全文
posted @ 2015-03-16 14:27 沉淀2014 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/shuaishuai80/article/details/6140979malloc、calloc、realloc的区别分类:C Language2011-01-15 01:085451人阅读评论(2)收藏举报存储语言deletecos(1)C语言跟内存分配... 阅读全文
posted @ 2015-03-16 10:46 沉淀2014 阅读(835) 评论(0) 推荐(0) 编辑
摘要: malloc:memory allocationcalloc:The 'c' indicates 'cleared'realloc:Therealloc() function changes the size of the memory block pointed to by ptr to size... 阅读全文
posted @ 2015-03-16 10:02 沉淀2014 阅读(377) 评论(0) 推荐(0) 编辑

导航