equal
deleted
inserted
replaced
43 # define Eps DBL_EPSILON |
43 # define Eps DBL_EPSILON |
44 # define Inf DBL_MAX |
44 # define Inf DBL_MAX |
45 # define PI M_PI |
45 # define PI M_PI |
46 #else |
46 #else |
47 # define Float float |
47 # define Float float |
48 # define Eps 1e-6f |
48 # define Eps 2e-6f |
49 # define Inf FLT_MAX |
49 # define Inf FLT_MAX |
50 # define PI (float)M_PI |
50 # define PI (float)M_PI |
51 #endif |
51 #endif |
52 |
52 |
53 // enable M_* constants in MSVC |
53 // enable M_* constants in MSVC |
54 #define _USE_MATH_DEFINES |
54 #define _USE_MATH_DEFINES |
55 |
55 |
|
56 #ifdef MSVC |
|
57 #define NORETURN __declspec(noreturn) |
|
58 #else |
|
59 #define NORETURN __attribute__((noreturn)) |
|
60 #endif |
|
61 |
56 /* verbosity level: |
62 /* verbosity level: |
57 0: only errors (E) |
63 0: only errors and warnings (E, W) |
58 1: major status messages (*) |
64 1: major status messages (*) |
59 2: minor status, progress (-) |
65 2: minor status, progress (-) |
60 3: debug messages (D) |
66 3: debug messages (D) |
61 4: thread debug |
67 4: thread debug |
62 default = 2 |
68 default = 2 |