Mail Archives: djgpp-workers/2004/01/02/12:31:42
According to Kbwms AT aol DOT com:
> The constant in djlsr204.zip, file src/libc/c99/math/hugevall.c, which
> purports to be an infinity of type long double, is incorrect:
>
> /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
> #include <libc/ieee.h>
>
> long_double_t __dj_huge_vall = { 0x00000000, 0x00000000, 0x7fff, 0x0 };
>
> This constant is actually a denormal and should be:
>
> long_double_t __dj_huge_vall = { 0x00000000, 0x80000000, 0x7fff, 0x0 };
>
> The patch is:
>
> --- c:/djgpp.204/src/libc/c99/math/hugevall.c 2003-01-23 14:50:52.000000000
> -0500
> +++ c:/gputil/hugevall.c 2004-01-01 15:00:02.000000000 -0500
> @@ -1,4 +1,4 @@
> /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
> #include <libc/ieee.h>
>
> -long_double_t __dj_huge_vall = { 0x00000000, 0x00000000, 0x7fff, 0x0 };
> +long_double_t __dj_huge_vall = { 0x00000000, 0x80000000, 0x7fff, 0x0 };
Correct. Can you commit in CVS or should I?
Right,
MartinS
- Raw text -