码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
CUDA + DX10 注意:block内部thread矩阵的形式
今天用cuda block内thread的形式来修改 两个for循环的 六面体一直不对。// for (int i= 0;i<boxPointNums-1;i++)// { unsigned int j= threadIdx.x; unsigned int...
分类:其他好文   时间:2015-03-15 13:46:03    阅读次数:141
s3c6410外部中断号与引脚问题
在编写Linux驱动程序时,我想用某一个引脚做外部中断。但是在调用 int request_irq(unsigned int irq,  void (*handler)(int irq, void *dev_id, struct pt_regs *regs  ), unsigned long irqflags,  const char * devname,  void *dev_id)...
分类:其他好文   时间:2015-03-15 10:58:59    阅读次数:183
Sizeof与Strlen的区别与联系
一、sizeof     sizeof(...)是运算符,在头文件中typedef为unsigned int,其值在编译时即计算好了,参数可以是数组、指针、类型、对象、函数等。     它的功能是:获得保证能容纳实现所建立的最大对象的字节大小。     由于在编译时计算,因此sizeof不能用来返回动态分配的内存空间的大小。实际上,用sizeof来返回类型以及静态分配的对象、结构或数组所...
分类:其他好文   时间:2015-03-15 09:32:06    阅读次数:117
关于c数据类型的范围
1.各整型范围:unsignedint0~4294967295 int2147483648~2147483647 unsigned long 0~4294967295 long2147483648~2147483647 long long的最大值:9223372036854775807 long l...
分类:其他好文   时间:2015-03-14 23:11:05    阅读次数:234
LeetCode 191:number of one 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-...
分类:其他好文   时间:2015-03-14 23:05:28    阅读次数:242
LeetCode 192:Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return...
分类:其他好文   时间:2015-03-14 22:59:56    阅读次数:243
POJ 3414 Pots 暴力,bfs 难度:1
http://poj.org/problem?id=3414记录瓶子状态,广度优先搜索即可#include #include #include using namespace std;const int maxn=101;int n,m;typedef unsigned long long ull;...
分类:其他好文   时间:2015-03-14 21:23:22    阅读次数:151
高低位字节互换
#include #include using namespace std; int main() { unsigned short A =0xABCD; unsigned short B,C,D; cout<<setiosflags(ios::uppercase) <<hex <<"A =0x " <<A<<endl; B = (A<<8)&0xff00; C ...
分类:其他好文   时间:2015-03-14 17:04:44    阅读次数:121
Reverse Bits
Reverse Bits问题:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as000000101001010000011110100...
分类:其他好文   时间:2015-03-14 16:42:44    阅读次数:114
char,short ,int ,long,long long,unsigned long long数据范围
速查表:char -128 ~ +127 (1 Byte)short -32767 ~ + 32768 (2 Bytes)unsigned short 0 ~ 65535 (2 Bytes)int -2147483648 ~ +2147483647 (4 Bytes)unsigned int 0 ~...
分类:其他好文   时间:2015-03-14 15:18:02    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!