码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
ATT汇编简介
前言:汇编语言,对下取决于体系结构;对上取决于汇编器。在linux下,GCC编译出来的汇编默认为ATT语法的汇编,本文主要介绍ATT汇编:操作数长度、立即数表示方法,寄存器引用,操作数顺序,符号常量,内存引用等。 1,操作数的长度          操作数的长度用加在指令后的符号表示 b(byte, 8-bit), w(word, 16-bits), l(long, 32-...
分类:其他好文   时间:2014-06-27 10:44:54    阅读次数:800
[fw]Real Mode addressing
Real Mode在 real mode 中,memory 的使用被限制在 1 MByte(220bytes) 內,可用的 address 範圍為 0x00000 ~ 0xFFFFF。由 memory address 的可用範圍可知,存取需要 20 bits 的長度,但在 8086 的 CPU 架構...
分类:其他好文   时间:2014-06-18 13:41:34    阅读次数:180
UML的基础元件之架构元件(四)
Structural Things An artifact is a physical and replaceable part of a system that contains physical information (“bits”). In a system, you’ll encounter different kinds of deployment artifacts...
分类:其他好文   时间:2014-06-17 23:08:40    阅读次数:258
UML的基本图(三)
?? An artifact diagram shows the physical constituents of a system on the computer. Artifacts include files, databases, and similar physical collections of bits. Artifacts are often used in conjunct...
分类:其他好文   时间:2014-06-17 16:11:28    阅读次数:287
HDOJ 1196 Lowest Bit
题目大意是给一个1-100的整数,要求首先转化成2进制,然后从最低位开始数起到不是0的位停止,输出这些位代表队额10进制数 1 #include 2 3 using namespace std; 4 5 int bits[7]={1,2,4,8,16,32,64}; 6 int judge(i...
分类:其他好文   时间:2014-06-16 08:10:21    阅读次数:226
CloudFoundry V2 单机版离线安装(伪离线安装)
之前安装CloudFoundry一直使用在线安装,每次下载CloudFoundry的一堆代码,耗时很久,考虑使用已经安装系统的CloudFoundry文件,从而节省单机部署时间。 获取CloudFoundry安装文件   服务器 10.106.1.51 (Ubuntu 10.04 LTS 64 bits)已经在线安装CloudFoundry,获取两个目录的文件cfvcap.tar.gz 和 h...
分类:其他好文   时间:2014-06-15 17:51:37    阅读次数:233
[LeetCode OJ] Single Number之二 ——Given an array of integers, every element appears THREE times except for one. Find that single one.
1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int bits = sizeof(int)*8; 5 int result=0; 6 for(int i...
分类:移动开发   时间:2014-06-10 19:45:48    阅读次数:334
java中的new BufferedReader(new InputStreamReader(System.in))
流 JAVA /IO 基本小结  通过一行常见的代码讨论:new BufferedReader(new InputStreamReader(System.in))   java的IO是基于流(stream)概念的,什么是流呢,作为初学者, 我是这样理解的,在各个应用之间传送的是BITS,这些BIT可已被认为是流体,可以就认为是水流,那么用来在各个水源之间转移水的工具应该选择什么呢?一般...
分类:编程语言   时间:2014-06-10 14:24:53    阅读次数:262
不用加减乘除做加法
问题描述 写一个函数,求两个整数之和,要求在函数体内不得使用+、-、*、/四则运算符号。 算法描述 从二进制运算入手, 1.a^b求出各bit的和, 2.a&b求出需要进位的bits, 3 4.重复1、2、3直至a&b==0(即进位为0),得到结果。 代码 int add(int num1,int num2) { if(num2==0) retu...
分类:其他好文   时间:2014-06-02 12:38:46    阅读次数:225
LeetCode: Gray Code [089]
【题目】 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 sequence of gray code. A gray code sequence must begin with 0. ...
分类:其他好文   时间:2014-06-01 09:16:29    阅读次数:242
3873条   上一页 1 ... 384 385 386 387 388 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!