CHAPTER 4: Arithmetic for Computers Flashcards

1
Q

arithmetic logic unit (ALU)

A

hardware that performs addition, subtraction, and usually logical operations such as AND and OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

overflow

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

normalized

A

number in floating-point notation that has no leading 0s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

floating point

A

computer arithmetic that represents numbers in which the binary point is not fixed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

overflow (floating-point)

A

situation in which a positive exponent becomes too large to fit in the exponent field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

underflow (floating-point)

A

situation in which a negative exponent becomes too large to fit in the exponent field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

double precision

A

floating-point value represented in a 64-bit doubleword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

single precision

A

floating-point value represented in a 32-bit word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

exception (interrupt)

A

unscheduled event that disrupts program execution; used to detect overflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

interrupt

A

exception that comes from outside of the processer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

guard

A

first of two extra bits kept on the right during intermediate calculations of floating-point numbers; used to improve rounding accuracy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

round

A

Method to make the intermediate floating-point result fit the floating-point format; the goal is typically to find the nearest number that can be represented in the format. It is also the name of the second of two extra bits kept on the right during intermediate floating-point calculations, which improves rounding accuracy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

units in the last place (ulp)

A

number of bits in error in the least significant bits of the significand between the actual number and the number that can be represented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

sticky bit

A

bit used in rounding in addition to guard and round that is set whenever there are nonzero bits to the right of the round bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

fused multiply add

A

floating-point instruction that performs both a multiply and an add, but rounds only once after the add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

fallacy: just as a left shift instruction can replace an integer multiply by a power of 2, a right shift is the same as an integer division by a power of 2

A
17
Q

pitfall: floating-point addition is not associative

A
18
Q

fallacy: parallel execution strategies that work for integer data types also work for floating-point data types

A