码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
【leetcode】Gray Code
题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the...
分类:其他好文   时间:2014-09-14 11:22:47    阅读次数:181
针对main函数的运行时stack的分析
针对main函数的运行时stack的分析                      这里需要特殊说明的是运行环境是64-bits的Ubuntu.编译器是gcc 测试用代码: int main(int argc,char* argv[]) { int array[10]; array[0] = 10; array[9] = 9; return 0; }...
分类:其他好文   时间:2014-09-09 12:53:08    阅读次数:114
Double prefix overrides to provide 16-bit operand size in a 32/64 operating mode
A processor supports an operating mode in which the default address size is greater than 32 bits and the default operand size is 32 bits. The default ...
分类:其他好文   时间:2014-09-03 01:28:06    阅读次数:395
bitset使用
17.10使用序列1、2、3、5、8、13、21初始化一个bitset,将这些位置置位。对另一个bitset进行默认初始化,并编写一小段程序将其恰当的位置位。#include#includeusing namespace std;int main(){ bitset bits("1000000...
分类:其他好文   时间:2014-09-02 22:48:15    阅读次数:228
位运算操作
除了static_stream还有stream可以进行按位读写之外,TBOX还提供了更加原始、更加底层的位数据操作接口,例如直接对某个数据指针的位读取操作,可以使用utils库的tb_bits_get_xxx和tb_bits_set_xxx 系列接口, 这个更加的轻量:
分类:其他好文   时间:2014-09-02 12:00:14    阅读次数:194
《Unix环境高级编程》读书笔记 第10章-信号
1.引言信号是软件中断。信号提供了一种处理异步事件的方法。2. 信号概念信号的名字都是以3个字符SIG开头。Linux3.2.0支持31种信号。FreeBSD、Linux和Solaris作为实时扩展都支持另外的应用程序定义的信号。在头文件signal.h(其中include的bits/signum....
分类:其他好文   时间:2014-09-01 00:25:52    阅读次数:234
Netperf Manual
Netperf Manual Section 0. The Legal Stuff Section 1. Introduction Conventions and Definitions Section 2. Installing Netperf Getting the netperf bits f...
分类:Web程序   时间:2014-08-31 19:55:41    阅读次数:304
32位Linux文件限制大小
线上程序不断重新启动,查看log发现是进程由于SIGXFSZ信号退出。对过大的文件进行操作的时候会产生此信号,一般仅仅在32位机器上出现,文件限制大小为2G。用lsof查看进程打开的文件,果然有一个文件达到2G。 解决方式:编译时加上參数:-D_FILE_OFFSET_BITS=64;...
分类:系统相关   时间:2014-08-30 16:24:49    阅读次数:229
位运算操作
除了static_stream还有stream可以进行按位读写之外,TBOX还提供了更加原始、更加底层的位数据操作接口,例如直接对某个数据指针的位读取操作,可以使用utils库的tb_bits_get_xxx和tb_bits_set_xxx 系列接口, 这个...
分类:其他好文   时间:2014-08-29 16:25:08    阅读次数:152
leetcode之Gray Code
Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the cod...
分类:其他好文   时间:2014-08-27 14:45:48    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!