|
@ -41,6 +41,13 @@ unsigned int precision(unsigned int number) { |
|
|
return (number & precision); |
|
|
return (number & precision); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// reading exponent out of an integer (floating number) |
|
|
|
|
|
|
|
|
|
|
|
unsigned int e(unsigned int a) { |
|
|
|
|
|
unsigned int e = 2139095040; |
|
|
|
|
|
return (a & e) >> 23; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// addition of two floating numbers |
|
|
// addition of two floating numbers |
|
|
|
|
|
|
|
|
float addition_float(float number1, float number2) { |
|
|
float addition_float(float number1, float number2) { |
|
|