Chapter 9 Computer Arithmetic
来源:互联网 发布:淘宝商城天猫首页 编辑:程序博客网 时间:2024/04/30 04:50
- Sign-magnitude Representation
- Left most bit is sign bit.
- 0 means positive
- 1 means negative
- Rarely used
- Two's complement representation
- Benefits
- One representation of zero
- Arithmetic works easily
- Conversion between lengths: left pack sign bit
- Multiplication
- Multiplying negative numbers
- Solution 1
- Convert to positive if required
- Multiply as above
- If signs were different, negate the answer
- Solution 2
- Booth's algorithm
- Division
- Negative numbers division
- Floating point representation
- Principle: ±S*B ±E
- E: exponent, in computer, usually biased representation
- ±S*BE'
- Typically, the bias = 2^(k-1) - 1. Exponent value = true exponent + bias
- Thus, stored exponent value is unsigned.
- Floating-point arithmetic
- Add/Subtract
- Align significands(Adjusting exponents)
- Shifting the radix point on the smaller operand
- Once the overflow occurs, the influence is smaller
0 0
- Chapter 9 Computer Arithmetic
- Chapter 9 The Development of Computer Operating System
- Chapter 01 Computer Graphics Hardware
- Chapter 02 Computer Graphics Software
- Chapter 9 Measuring Program Execution Time-- Scale of Computer System Event
- Computer Vision:a Modern Approach 摘抄笔记——Chapter 9:Segmentation by Clustering
- 【Chapter 1】【Objective】History of the Computer
- Chapter 3. Computer Architecture for Beginners
- <<python computer vision with opencv>> chapter 2
- Chapter 1 - A Tour of Computer System
- Chapter 2 Computer Evolution And Performance
- Chapter 13 Reduced Instruction Set Computer
- 读书收获、心情等 读computer arithmetic algorithms
- Chapter 8 The Development of Computer Programming Languages
- 【Chapter 1】【1.1.1】History of the Computer
- 《CS:APP》 chapter 1 A Tour of Computer Systems 笔记
- Chapter 1 A Tour of Computer Systems 《CSAPP》笔记
- cs:app2e chapter 1 A Tour of Computer Systems.
- C#常用多线程方法
- Could not get JDBC Connection
- ajaxfileupload.js+SpringMVC实现文件上传
- Chapter 7 Input/Output
- 收尾--我的2016
- Chapter 9 Computer Arithmetic
- 老罗
- Chapter 10 Instruction Set: Charateristics and Functions
- 深入分析VMware虚拟机的三种组网模式
- Java简单枚举的实现
- 简单实现一个人脸检测器(HOG+SVM实现人脸检测)
- include和merge 布局使减少布局重用
- 程序设计实验Ⅰ期末模拟 解题报告
- 读取网络流获取文件大小