]> git.mxchange.org Git - flightgear.git/blob - tests/est-epsilon.cxx
Including missing OSG plugins, use LZMA compression
[flightgear.git] / tests / est-epsilon.cxx
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #ifdef HAVE_WINDOWS_H
6 #  include <windows.h>
7 #endif
8
9 #include <stdio.h>
10
11 #include <simgear/compiler.h>
12 #if defined( __APPLE__)
13 # include <OpenGL/OpenGL.h>
14 #else
15 # include <GL/gl.h>
16 #endif
17
18 int main() {
19     GLfloat a, t;
20
21     a = 1.0;
22
23     do {
24         printf("a = %.10f\n", a);
25         a = a / 2.0;
26         t = 1.0 + a;
27     } while ( t > 1.0 );
28
29     a = a + a;
30
31     printf("Estimated GLfloat epsilon = %.10f\n", a);
32
33     return(0);
34 }