Mercurial > flash_v2
annotate packages/language/c/libm/current/include/pkgconf/libm.h @ 64:c38311975d4f ecos-sw-2000-01-28
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
| author | jlarmour |
|---|---|
| date | Fri, 28 Jan 2000 04:59:39 +0000 |
| parents | 755351606154 |
| children | bf00f99aec69 |
| rev | line source |
|---|---|
| 0 | 1 #ifndef CYGONCE_PKGCONF_LIBM_H |
| 2 #define CYGONCE_PKGCONF_LIBM_H | |
| 3 //======================================================================== | |
| 4 // | |
| 5 // libm.h | |
| 6 // | |
| 7 // Configuration header for mathematical function library | |
| 8 // | |
| 9 //======================================================================== | |
| 10 //####COPYRIGHTBEGIN#### | |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
11 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
12 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
13 // The contents of this file are subject to the Red Hat eCos Public License |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
14 // Version 1.0 (the "License"); you may not use this file except in |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
15 // compliance with the License. You may obtain a copy of the License at |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
16 // http://sourceware.cygnus.com/ecos |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
17 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
18 // Software distributed under the License is distributed on an |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
20 // License for the specific language governing rights and limitations under |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
21 // the License. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
22 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
23 // The Original Code is eCos - Embedded Configurable Operating System, |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
24 // released September 30, 1998. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
25 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
26 // The Initial Developer of the Original Code is Red Hat. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
27 // Portions created by Red Hat are |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
28 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
29 // All Rights Reserved. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
30 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
56
diff
changeset
|
31 // |
| 0 | 32 //####COPYRIGHTEND#### |
| 33 //======================================================================== | |
| 34 //#####DESCRIPTIONBEGIN#### | |
| 35 // | |
| 2 | 36 // Author(s): jlarmour |
| 37 // Contributors: jlarmour | |
| 0 | 38 // Date: 1998-02-13 |
| 39 // Purpose: Configuration of the standard mathematical function library | |
| 40 // Description: Configuration header for mathematical function library | |
| 41 // Usage: #include <pkgconf/libm.h> | |
| 42 // | |
| 43 //####DESCRIPTIONEND#### | |
| 44 // | |
| 45 //======================================================================== | |
| 46 | |
| 47 | |
| 48 //======================================================================== | |
| 49 // | |
| 50 // A NOTE ON COMPATIBILITY MODES | |
| 51 // | |
| 52 // This math library is capable of being operated in several different | |
| 53 // compatibility modes. These options deal solely with how errors are | |
| 54 // handled. | |
| 55 // | |
| 56 // There are 4 compatibility modes: ANSI/POSIX 1003.1; IEEE-754; X/Open | |
| 57 // Portability Guide issue 3 (XPG3); and System V Interface Definition | |
| 58 // Edition 3. | |
| 59 // | |
| 60 // In IEEE mode, the matherr() function (see below) is never called, no | |
| 61 // warning messages are printed on the stderr output stream, and errno is | |
| 62 // never set. | |
| 63 // | |
| 64 // In ANSI/POSIX mode, errno is set correctly, but matherr() is never | |
| 65 // called and no warning messages are printed on the stderr output stream. | |
| 66 // | |
| 67 // In X/Open mode, errno is set correctly, matherr() is called, but no | |
| 68 // warning messages are printed on the stderr output stream. | |
| 69 // | |
| 70 // In SVID mode, functions which overflow return a value "HUGE" (defined in | |
| 71 // math.h), which is the maximum single precision floating point value | |
| 72 // (as opposed to HUGE_VAL which is meant to stand for infinity). errno is | |
| 73 // set correctly and matherr() is called. If matherr() returns 0, warning | |
| 74 // messages are printed on the stderr output stream for some errors. | |
| 75 // | |
| 76 // The mode can be compiled-in as IEEE-only, or any one of the above | |
| 77 // methods settable at run-time. See the configuration options below for | |
| 78 // more. | |
| 79 // | |
| 80 //======================================================================== | |
| 81 // | |
| 82 // MATHERR() | |
| 83 // | |
| 84 // As said, in X/Open or SVID modes, the user can supply a function | |
| 85 // matherr() of the form: | |
| 86 // | |
| 87 // int matherr( struct exception * ); | |
| 88 // | |
| 89 // where: | |
| 90 // struct exception { | |
| 91 // int type; | |
| 92 // char *name; | |
| 93 // double arg1, arg2, retval; | |
| 94 // }; | |
| 95 // | |
| 96 // - type is the exception type and is one of: | |
| 97 // DOMAIN - argument domain exception | |
| 98 // SING - argument singularity | |
| 99 // OVERFLOW - overflow range exception | |
| 100 // UNDERFLOW - underflow range exception | |
| 101 // TLOSS - total loss of significance | |
| 102 // PLOSS - partial loss of significance | |
| 103 // | |
| 104 // - name is a string containing the name of the function | |
| 105 // - arg1 and arg2 are the arguments passed to the function | |
| 106 // - retval is the default value that will be returned by the function, and | |
| 107 // can be changed by matherr | |
| 108 // | |
| 109 // matherr must have "C" linkage, not C++ | |
| 110 // | |
| 111 // If matherr returns zero, or the user doesn't supply their own matherr, | |
| 112 // then the following _usually_ happens in SVID mode: | |
| 113 // | |
| 114 // If type is: | |
| 115 // DOMAIN - 0.0 returned, errno=EDOM, and a message printed on stderr | |
| 116 // SING - HUGE of appropriate sign is returned, errno=EDOM, and a | |
| 117 // message is printed on stderr | |
| 118 // OVERFLOW - HUGE of appropriate sign is returned, and errno=ERANGE | |
| 119 // UNDERFLOW - 0.0 is returned and errno=ERANGE | |
| 120 // TLOSS - 0.0 is returned, errno=ERANGE, and a message is printed on | |
| 121 // stderr | |
| 122 // PLOSS - The current implementation doesn't return this type | |
| 123 // | |
| 124 // X/Open mode is similar except that the message is not printed on stderr | |
| 125 // and HUGE_VAL is used in place of HUGE | |
| 126 // | |
| 127 //======================================================================== | |
| 128 // | |
| 129 // THREAD-SAFETY AND RE-ENTRANCY | |
| 130 // | |
| 131 // With the appropriate configuration options set below, the math library | |
| 132 // is fully thread-safe if: | |
| 133 // | |
| 134 // - Depending on the compatibility mode, the setting of the errno variable | |
| 135 // from the C library is thread-safe | |
| 136 // | |
| 137 // - Depending on the compatibility mode, sending error messages to the | |
| 138 // stderr output stream using the C library fputs() function is | |
| 139 // thread-safe | |
| 140 // | |
| 141 // - Depending on the compatibility mode, the user-supplied matherr() | |
| 142 // function and anything it depends on are thread-safe | |
| 143 // | |
| 144 // In addition, with the exception of the gamma*() and lgamma*() functions, | |
| 145 // the math library is re-entrant (and thus safe to use from interrupt | |
| 146 // handlers) if the Math library is always in IEEE mode | |
| 147 // | |
| 148 //======================================================================== | |
| 149 // | |
| 150 // Also note that this math library assumes the hardware (or software | |
| 151 // floating point emulation) supports IEEE-754 style arithmetic, 32-bit | |
| 152 // 2's complement integer arithmetic, doubles are in 64-bit | |
| 153 // IEEE-754 format. | |
| 154 // | |
| 155 //======================================================================== | |
| 156 | |
| 157 | |
| 158 // INCLUDES | |
| 159 | |
| 160 // Include system configuration file to work out whether the Math library | |
| 161 // is to be included at all | |
| 162 #include <pkgconf/system.h> | |
| 163 | |
| 164 // We want to check if the kernel supports per-thread data | |
| 165 #ifdef CYGPKG_KERNEL | |
| 166 # include <pkgconf/kernel.h> | |
| 167 #endif | |
| 168 | |
| 169 /* | |
| 170 | |
| 171 {{CFG_DATA | |
| 172 cdl_package CYGPKG_LIBM { | |
| 2 | 173 display "Math library" |
| 0 | 174 description "ISO standard floating point mathematical library |
| 175 containing many useful functions for mathematical | |
| 176 calculations." | |
| 177 type boolean | |
| 178 requires CYGPKG_ERROR | |
| 2 | 179 doc ref/ecos-ref/the-iso-standard-c-and-math-libraries.html |
| 0 | 180 } |
| 181 }}CFG_DATA | |
| 182 | |
| 183 */ | |
| 184 | |
| 185 // TYPE DEFINITIONS | |
| 186 | |
| 187 // Compatibility mode selector - required for default below | |
| 188 | |
| 189 typedef enum { | |
| 190 CYGNUM_LIBM_COMPAT_UNINIT= 0, // Default state. DO NOT set it to this | |
| 191 CYGNUM_LIBM_COMPAT_POSIX = 1, // ANSI/POSIX 1003.1 | |
| 192 CYGNUM_LIBM_COMPAT_IEEE = 2, // IEEE-754 | |
| 193 CYGNUM_LIBM_COMPAT_XOPEN = 3, // X/OPEN Portability guide issue 3 | |
| 194 // (XPG3) | |
| 195 CYGNUM_LIBM_COMPAT_SVID = 4 // System V Interface Definition 3rd | |
| 196 // edition | |
| 197 } Cyg_libm_compat_t; | |
| 198 | |
| 199 | |
| 200 //======================================================================== | |
| 201 // | |
| 202 // COMPATIBILITY-MODE RELATED CONFIGURATION OPTIONS | |
| 203 | |
| 204 /* | |
| 205 {{CFG_DATA | |
| 206 | |
| 207 cdl_component CYGPKG_LIBM_COMPATIBILITY { | |
| 208 display "Compatibility mode" | |
| 209 description "These options deal with behaviour related to | |
| 210 the various compatibility modes - POSIX, IEEE, | |
| 211 X/OPEN and SVID." | |
| 212 doc ref/ecos-ref/math-library-compatibility-modes.html | |
| 213 type dummy | |
| 214 parent CYGPKG_LIBM | |
| 215 } | |
| 216 | |
| 217 cdl_option CYGSEM_LIBM_COMPAT_IEEE_ONLY { | |
| 218 display "IEEE-only" | |
| 219 description "The math library can be hard-coded to only | |
| 220 behave in one compatibility mode - IEEE. This | |
| 221 cannot be changed at run-time. IEEE mode is the | |
| 222 most minimal of the compatibility modes, and so | |
| 223 this will best help code size and speed, as well | |
| 224 as omitting the code for other compatibility | |
| 225 modes. If not defined, the math library can be | |
| 226 set at run-time to any of the supported | |
| 227 compatibility modes." | |
| 228 type radio | |
| 229 parent CYGPKG_LIBM_COMPATIBILITY | |
| 230 } | |
| 231 | |
| 232 cdl_component CYGPKG_LIBM_COMPATIBILITY_DEFAULT { | |
| 233 display "Default mode" | |
| 234 description "If you want to have support for more than one | |
| 235 compatibility mode settable at run-time, rather | |
| 236 than hard-coded IEEE mode, this component lets | |
| 237 you choose which mode should be the default." | |
| 238 type radio | |
| 239 parent CYGPKG_LIBM_COMPATIBILITY | |
| 240 requires CYGPKG_LIBC | |
| 241 } | |
| 242 | |
| 243 cdl_option CYGNUM_LIBM_COMPATIBILITY_POSIX { | |
| 244 display "POSIX" | |
| 245 description "This sets the default compatibility mode to | |
| 246 POSIX" | |
| 247 type radio | |
| 248 parent CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 249 } | |
| 250 | |
| 251 cdl_option CYGNUM_LIBM_COMPATIBILITY_IEEE { | |
| 252 display "IEEE" | |
| 253 description "This sets the default compatibility mode to IEEE" | |
| 254 type radio | |
| 255 parent CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 256 } | |
| 257 | |
| 258 cdl_option CYGNUM_LIBM_COMPATIBILITY_XOPEN { | |
| 259 display "X/OPEN" | |
| 260 description "This sets the default compatibility mode to | |
| 261 X/OPEN" | |
| 262 type radio | |
| 263 parent CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 264 } | |
| 265 | |
| 266 cdl_option CYGNUM_LIBM_COMPATIBILITY_SVID { | |
| 267 display "SVID" | |
| 268 description "This sets the default compatibility mode to SVID" | |
| 269 type radio | |
| 270 parent CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 271 } | |
| 272 | |
| 273 cdl_option CYGFUN_LIBM_SVID3_scalb { | |
| 274 display "SVID3-style scalb()" | |
| 275 description "SVID3 defined the scalb() function as double | |
| 276 scalb(double, double) rather than double | |
| 277 scalb(double, int) which is used by IBM, DEC, and | |
| 278 probably others. Enabling this option chooses | |
| 279 the (double, double) version. Note there is a | |
| 280 function double scalbn(double, int) which is | |
| 281 unaffected by this choice." | |
| 282 type boolean | |
| 283 parent CYGPKG_LIBM_COMPATIBILITY | |
| 284 } | |
| 285 | |
| 286 cdl_option CYGSYM_LIBM_NO_XOPEN_SVID_NAMESPACE_POLLUTION { | |
| 287 display "Reduce namespace pollution" | |
| 288 description "If you do not want to use either the X/Open or | |
| 289 SVID3 compatibility modes, you may want to define | |
| 290 this option to reduce the chance of namespace | |
| 291 pollution. This is particularly likely to occur | |
| 292 here as these standards define symbols with | |
| 293 names that often appear in applications, such as | |
| 294 exception, DOMAIN, OVERFLOW, etc. If your | |
| 295 application also used these names, it may cause | |
| 296 problems." | |
| 297 type boolean | |
| 298 parent CYGPKG_LIBM_COMPATIBILITY | |
| 299 } | |
| 300 | |
| 301 cdl_option CYGSEM_LIBM_USE_STDERR { | |
| 302 display "Output to stderr for math errors" | |
| 303 description "The SVID3 standard says that error | |
| 304 messages should be output on the stderr console | |
| 305 output stream. This option allows this ability | |
| 306 to be explicitly controlled. However, this still | |
| 307 only has an effect in SVID3 compatibility mode." | |
| 308 type boolean | |
| 309 requires !CYGSEM_LIBM_COMPAT_IEEE_ONLY | |
| 310 requires CYGPKG_LIBC_STDIO | |
| 311 parent CYGPKG_LIBM_COMPATIBILITY | |
| 312 } | |
| 313 | |
| 314 }}CFG_DATA | |
| 315 */ | |
| 316 | |
| 317 #undef CYGSEM_LIBM_COMPAT_IEEE_ONLY | |
| 318 #define CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 319 | |
| 320 #ifdef CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 321 # ifndef CYGPKG_LIBC | |
| 322 # error You must include the libc package if enabling \ | |
| 323 CYGPKG_LIBM_COMPATIBILITY_DEFAULT | |
| 324 # endif | |
| 325 #endif | |
| 326 | |
| 327 #define CYGNUM_LIBM_COMPATIBILITY_POSIX | |
| 328 #undef CYGNUM_LIBM_COMPATIBILITY_IEEE | |
| 329 #undef CYGNUM_LIBM_COMPATIBILITY_XOPEN | |
| 330 #undef CYGNUM_LIBM_COMPATIBILITY_SVID | |
| 331 | |
|
56
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
332 #undef CYGNUM_LIBM_COMPAT_DEFAULT /* this is for permtest to find! */ |
| 0 | 333 |
|
56
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
334 #ifndef CYGNUM_LIBM_COMPAT_DEFAULT |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
335 # if defined(CYGPKG_LIBM_COMPATIBILITY_DEFAULT) |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
336 # if defined(CYGNUM_LIBM_COMPATIBILITY_POSIX) |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
337 # define CYGNUM_LIBM_COMPAT_DEFAULT CYGNUM_LIBM_COMPAT_POSIX |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
338 # elif defined(CYGNUM_LIBM_COMPATIBILITY_IEEE) |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
339 # define CYGNUM_LIBM_COMPAT_DEFAULT CYGNUM_LIBM_COMPAT_IEEE |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
340 # elif defined(CYGNUM_LIBM_COMPATIBILITY_XOPEN) |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
341 # define CYGNUM_LIBM_COMPAT_DEFAULT CYGNUM_LIBM_COMPAT_XOPEN |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
342 # elif defined(CYGNUM_LIBM_COMPATIBILITY_SVID) |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
343 # define CYGNUM_LIBM_COMPAT_DEFAULT CYGNUM_LIBM_COMPAT_SVID |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
344 # else |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
345 # error Configuration broken - no default mode set |
|
755351606154
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
jlarmour
parents:
2
diff
changeset
|
346 # endif |
| 0 | 347 # endif |
| 348 #endif | |
| 349 | |
| 350 #define CYGFUN_LIBM_SVID3_scalb | |
| 351 | |
| 352 #undef CYGSYM_LIBM_NO_XOPEN_SVID_NAMESPACE_POLLUTION | |
| 353 | |
| 354 #undef CYGSEM_LIBM_USE_STDERR | |
| 355 | |
| 356 //======================================================================== | |
| 357 // | |
| 358 // THREAD-SAFETY CONFIGURATION OPTIONS | |
| 359 | |
| 360 /* | |
| 361 {{CFG_DATA | |
| 362 | |
| 363 cdl_component CYGPKG_LIBM_THREAD_SAFETY { | |
| 364 display "Thread safety" | |
| 365 description "This option controls whether the C library has | |
| 366 support for thread safe operation in general. | |
| 367 This requires eCos kernel support for per-thread | |
| 368 data, and adjustment of the stack limit." | |
| 369 type dummy | |
| 370 parent CYGPKG_LIBM | |
| 371 doc ref/ecos-ref/c-and-math-library-overview-thread-safety.html | |
| 372 } | |
| 373 | |
| 374 cdl_option CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE { | |
| 375 display "Compatibility mode setting" | |
| 376 description "This option makes the setting of the compatiblity | |
| 377 mode be a per-thread property. This directly | |
| 378 implies that it also becomes thread-safe." | |
| 379 requires !CYGSEM_LIBM_COMPAT_IEEE_ONLY | |
| 380 requires CYGVAR_KERNEL_THREADS_DATA | |
| 381 parent CYGPKG_LIBM_THREAD_SAFETY | |
| 382 } | |
| 383 }}CFG_DATA | |
| 384 | |
| 385 */ | |
| 386 | |
| 387 | |
| 388 #ifndef CYGSEM_LIBM_COMPAT_IEEE_ONLY // irrelevant if mode is constant | |
| 389 #undef CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE | |
| 390 #endif | |
| 391 | |
| 2 | 392 |
| 393 #if ( defined(CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE) && \ | |
| 0 | 394 !defined(CYGVAR_KERNEL_THREADS_DATA) ) |
| 2 | 395 # error The kernel must have thread-specific data \ |
| 396 (CYGVAR_KERNEL_THREADS_DATA) turned on for a thread-safe math library | |
| 0 | 397 #endif |
| 398 | |
| 399 //======================================================================== | |
| 400 // | |
| 401 // TRACING OPTIONS | |
| 402 | |
| 403 /* | |
| 404 {{CFG_DATA | |
| 405 | |
| 406 cdl_component CYGPKG_LIBM_TRACE { | |
| 407 display "Tracing output levels in Math library" | |
| 408 description "Tracing support is useful for debugging. Some | |
| 409 Math library modules can be configured with | |
| 410 different levels of tracing verbosity. These | |
| 411 levels can be configured here." | |
| 412 type boolean | |
| 413 requires CYGDBG_USE_TRACING | |
| 414 parent CYGPKG_LIBM | |
| 415 } | |
| 416 | |
| 417 cdl_option CYGNUM_LIBM_COMPATMODE_TRACE_LEVEL { | |
| 418 display "Compatibility mode get/set" | |
| 419 description "Trace level for debugging the getting and | |
| 420 setting of the compatibility mode when it is | |
| 421 configured to be thread-safe." | |
| 422 type count | |
| 423 legal_values 0 to 1 | |
| 424 requires CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE | |
| 425 parent CYGPKG_LIBM_TRACE | |
| 426 } | |
| 427 }}CFG_DATA | |
| 428 | |
| 429 */ | |
| 430 | |
| 431 #undef CYGPKG_LIBM_TRACE | |
| 432 | |
| 433 #ifdef CYGPKG_LIBM_TRACE | |
| 434 | |
| 435 #define CYGNUM_LIBM_COMPATMODE_TRACE_LEVEL 0 | |
| 436 | |
| 437 | |
| 438 #endif | |
| 439 | |
| 440 | |
| 441 #endif // CYGONCE_PKGCONF_LIBM_H multiple inclusion protection | |
| 442 | |
| 443 // EOF libm.h |
