Commit 9008e804 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Code cleanup.

parent d90ef335
...@@ -9,21 +9,7 @@ int main(void) { ...@@ -9,21 +9,7 @@ int main(void) {
PRINT_SIZE(double); PRINT_SIZE(double);
PRINT_SIZE(long double); PRINT_SIZE(long double);
/* float e = 1.f; // Will be replaced in assembly
* C = 0.f; op = '+'; e = 1.4012984643248171e-45
* C = 0.f; op = '-'; e = 1.4012984643248171e-45
* C = 1.f; op = '+'; e = 1.0842021724855044e-19
* C = 1.f; op = '-'; e = 5.4210108624275222e-20
* C = -1.f; op = '+'; e = 5.4210108624275222e-20
* C = -1.f; op = '-'; e = 1.0842021724855044e-19
*/
//float e, old;
//for(e = 1.f; 1.f - e != 1.f; old = e, e /= 2);
//printf("epsilon: %e\n", old);
//printf("epsilon: %.80f\n", old);
// 0.1f = 0x3dcccccd = '0 01111011 10011001100110011001101'
float e = 1.f;
printf("our epsilon: %.12e\n", e); printf("our epsilon: %.12e\n", e);
printf("f range: [%e, %e]\n", FLT_MIN, FLT_MAX); printf("f range: [%e, %e]\n", FLT_MIN, FLT_MAX);
printf("d range: [%e, %e]\n", DBL_MIN, DBL_MAX); printf("d range: [%e, %e]\n", DBL_MIN, DBL_MAX);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment