1.4.1 Data Types Flashcards
What is a mantissa?
A number to be multiplied by an exponent
What is an exponent?
A number representing the power to which a mantissa is to be multiplied by
What is positive floating point normalisation?
Sign bit of 0, and the next digit is a 1
What is negative floating point normalisation?
Sign bit of 1, and the next digit is a 0
What is Bitwise manipulation?
Moving binary numbers left or right to
multiply or divide.
What is Bitwise shift?
Multiplies or divides a binary number by
moving digits right or left.
What is a logical shift?
Moves all bits to the right or left. Fill gaps with
0s.
What is arithmetic shift?
Shifts bits while maintaining the sign bit
What are the rules when dividing and multiplying during an arithmetic shift?
If dividing:
* If the MSB is 1, feed in 1’s into the gap
after the MSB.
* If it’s 0, feed in 0’s.
If multiplying:
* Feed in 0’s.
What is a circular shift?
A shift that moves a bit into the carry bit at
one end, and takes a bit out at the other.
What are the rules when dividing and multiplying during a circular shift?
If dividing:
* The LSB goes into the MSB.
If multiplying:
* The MSB goes into the LSB.
How do AND masks work?
0s set to 0, 1s keep the original bit
How do OR masks work?
1s set to 1, 0s keep the original bit
How do XOR masks work?
0s keep the original bit, 1s NOT the original
bit.