码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
cocos2dx 内存管理的理解
关于引擎内存管理的细节,网上有大量的详解,这里概括一下:cocos2d-x 的世界是基于CCObject类构建的,所以内存管理的本质就是管理一个个CCObject。//CCObject 内部维护着一个引用计数,引用计数为 0 就自动释放unsigned int m_uReference;//管理.....
分类:其他好文   时间:2015-04-09 00:36:33    阅读次数:113
cocos2dx 使用过程中内存管理的理解
关于引擎内存管理的细节,网上有大量的详解,这里概括一下: cocos2d-x 的世界是基于 CCObject 类构建的,所以内存管理的本质就是管理一个个 CCObject。 //CCObject 内部维护着一个引用计数,引用计数为 0 就自动释放 unsigned int m_uReference; //管理内存的实质就是管理这些 “引用计数” 了,使用 retain 和 releas...
分类:其他好文   时间:2015-04-08 23:26:09    阅读次数:202
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-04-08 21:10:38    阅读次数:108
sobel算子实现边缘检测及其c++实现及与matlab效果对比
这里增加了对边缘像素的补齐。sobel梯度分割抗噪性好,但是无法做到自动阈值,是其一大遗憾,matlab却解决的很好。 //默认对8位位图进行处理 void Sobel(unsigned char *pIn, int width, int height, unsigned char *pOut) { //每行像素所占字节数,输出图像与输入图像相同 int lineByte=(wid...
分类:编程语言   时间:2015-04-08 13:16:11    阅读次数:287
Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit i...
分类:其他好文   时间:2015-04-08 12:21:36    阅读次数:101
C++中bitset的实现(引用类的使用)
#include #include #define CHAR_BIT 8 using namespace std; template class bitset { typedef unsigned long _Ty; friend ostream & operator &_R) { for(size_t _P=_N;_P>0;) _O<<(_R.test(--_P)?'1...
分类:编程语言   时间:2015-04-08 11:04:38    阅读次数:160
Linux内核源代码情景分析-特殊文件系统/proc-对/proc/self/cwd的访问
继上篇文章Linux内核源代码情景分析-特殊文件系统/proc,我们对/proc/loadavg访问后,这篇文章是对/proc/self/cwd的访问。int __user_walk(const char *name, unsigned flags, struct nameidata *nd) { char *tmp; int err; tmp = getname(name);//在系统空...
分类:系统相关   时间:2015-04-08 11:01:42    阅读次数:1849
191. Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:其他好文   时间:2015-04-08 07:58:32    阅读次数:106
190. Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-04-08 07:55:03    阅读次数:150
【C-01关键字】
一、语句引导关键字for while swith if do goto return二、限定关键字const static extern三、预编译关键字#include#pragma#define#ifdef#endif四、类型关键字int float double unsigned...
分类:其他好文   时间:2015-04-07 19:31:55    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!