diff options
Diffstat (limited to 'gl/math.in.h')
-rw-r--r-- | gl/math.in.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gl/math.in.h b/gl/math.in.h index 6e1b9a2b..a0efefda 100644 --- a/gl/math.in.h +++ b/gl/math.in.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* A GNU-like <math.h>. | 1 | /* A GNU-like <math.h>. |
2 | 2 | ||
3 | Copyright (C) 2002-2003, 2007-2008 Free Software Foundation, Inc. | 3 | Copyright (C) 2002-2003, 2007-2009 Free Software Foundation, Inc. |
4 | 4 | ||
5 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
@@ -518,7 +518,8 @@ extern int gl_signbitf (float arg); | |||
518 | extern int gl_signbitd (double arg); | 518 | extern int gl_signbitd (double arg); |
519 | extern int gl_signbitl (long double arg); | 519 | extern int gl_signbitl (long double arg); |
520 | # if __GNUC__ >= 2 && !__STRICT_ANSI__ | 520 | # if __GNUC__ >= 2 && !__STRICT_ANSI__ |
521 | # if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT | 521 | # if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf |
522 | # define gl_signbitf_OPTIMIZED_MACRO | ||
522 | # define gl_signbitf(arg) \ | 523 | # define gl_signbitf(arg) \ |
523 | ({ union { float _value; \ | 524 | ({ union { float _value; \ |
524 | unsigned int _word[(sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ | 525 | unsigned int _word[(sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ |
@@ -527,7 +528,8 @@ extern int gl_signbitl (long double arg); | |||
527 | (_m._word[FLT_SIGNBIT_WORD] >> FLT_SIGNBIT_BIT) & 1; \ | 528 | (_m._word[FLT_SIGNBIT_WORD] >> FLT_SIGNBIT_BIT) & 1; \ |
528 | }) | 529 | }) |
529 | # endif | 530 | # endif |
530 | # if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT | 531 | # if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd |
532 | # define gl_signbitd_OPTIMIZED_MACRO | ||
531 | # define gl_signbitd(arg) \ | 533 | # define gl_signbitd(arg) \ |
532 | ({ union { double _value; \ | 534 | ({ union { double _value; \ |
533 | unsigned int _word[(sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ | 535 | unsigned int _word[(sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ |
@@ -536,7 +538,8 @@ extern int gl_signbitl (long double arg); | |||
536 | (_m._word[DBL_SIGNBIT_WORD] >> DBL_SIGNBIT_BIT) & 1; \ | 538 | (_m._word[DBL_SIGNBIT_WORD] >> DBL_SIGNBIT_BIT) & 1; \ |
537 | }) | 539 | }) |
538 | # endif | 540 | # endif |
539 | # if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT | 541 | # if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl |
542 | # define gl_signbitl_OPTIMIZED_MACRO | ||
540 | # define gl_signbitl(arg) \ | 543 | # define gl_signbitl(arg) \ |
541 | ({ union { long double _value; \ | 544 | ({ union { long double _value; \ |
542 | unsigned int _word[(sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ | 545 | unsigned int _word[(sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)]; \ |