Re: [Mingw-w64-public] [PATH] math.h: The type of C99 INFINITY and NAN shall be float.

2016-11-13 Thread Nakai Yuta
hmm,  it seems that sf doesnt't accept it.




差出人: David Grayson 
送信日時: 2016年11月13日 08:30
宛先: mingw-w64-public@lists.sourceforge.net
件名: Re: [Mingw-w64-public] [PATH] math.h: The type of C99 INFINITY and NAN 
shall be float.

Patch is not attached.

--David

On Sat, Nov 12, 2016 at 7:33 PM, Nakai Yuta  wrote:

> C99 defines INFINITY and NAN macros as float.
> patch is attached.
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
From 9ddfb4049e27601a690ddd1e851d1b1729f9bd86 Mon Sep 17 00:00:00 2001
From: Yuta Nakai 
Date: Sun, 13 Nov 2016 12:16:38 +0900
Subject: [PATCH] math.h: The type of C99 INFINITY and NAN shall be float.

---
 mingw-w64-headers/crt/math.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h
index b06ca79..3399b93 100644
--- a/mingw-w64-headers/crt/math.h
+++ b/mingw-w64-headers/crt/math.h
@@ -353,8 +353,8 @@ _CRTIMP double __cdecl scalb (double, long);
 #ifdef __GNUC__
 #define HUGE_VALF  __builtin_huge_valf()
 #define HUGE_VALL  __builtin_huge_vall()
-#define INFINITY   __builtin_inf()
-#define NAN__builtin_nan("")
+#define INFINITY   __builtin_inff()
+#define NAN__builtin_nanf("")
 #else
 extern const float __INFF;
 #define HUGE_VALF __INFF
-- 
2.10.1

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATH] math.h: The type of C99 INFINITY and NAN shall be float.

2016-11-13 Thread David Grayson
Patch is not attached.

--David

On Sat, Nov 12, 2016 at 7:33 PM, Nakai Yuta  wrote:

> C99 defines INFINITY and NAN macros as float.
> patch is attached.
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATH] math.h: The type of C99 INFINITY and NAN shall be float.

2016-11-12 Thread Nakai Yuta
C99 defines INFINITY and NAN macros as float.
patch is attached.

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public