|
@ -48,6 +48,12 @@ unsigned int exponent(unsigned int number) { |
|
|
return (number & exponent) >> 23; |
|
|
return (number & exponent) >> 23; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// adding two precision together with sum < 2^24 |
|
|
|
|
|
|
|
|
|
|
|
unsigned int addition_precision(unsigned int p1, unsigned int p2) { |
|
|
|
|
|
return addition(p1, p2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// writing number out of sign, exponent and precision |
|
|
// writing number out of sign, exponent and precision |
|
|
|
|
|
|
|
|
unsigned int output(unsigned int sign, unsigned int exponent, unsigned int precision) { |
|
|
unsigned int output(unsigned int sign, unsigned int exponent, unsigned int precision) { |
|
|