Rev | Line | |
---|
[1823] | 1 | #ifndef OSX_VALUES_H
|
---|
| 2 | #define OSX_VALUES_H
|
---|
| 3 | #ifdef __cplusplus
|
---|
| 4 | extern "C" {
|
---|
| 5 | #endif
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | #define BITSPERBYTE 8
|
---|
| 9 | #define BITS(type) (BITSPERBYTE * (long)sizeof (type))
|
---|
| 10 | #define MAXDOUBLE 1.79769313486231570e+308
|
---|
| 11 | #define MINDOUBLE 4.94065645841246544e-324
|
---|
| 12 | #define _IEEE 1
|
---|
| 13 | #define _DEXPLEN 11
|
---|
| 14 | #define _HIDDENBIT 1
|
---|
| 15 | #define DMINEXP (-(DMAXEXP + DSIGNIF - _HIDDENBIT - 3))
|
---|
| 16 | #define DSIGNIF (BITS(double) - _DEXPLEN + _HIDDENBIT - 1)
|
---|
| 17 | #define DMAXEXP ((1 << _DEXPLEN - 1) - 1 + _IEEE)
|
---|
| 18 |
|
---|
| 19 | #ifdef __cplusplus
|
---|
| 20 | }
|
---|
| 21 | #endif
|
---|
| 22 |
|
---|
| 23 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.