hmm,  it seems that sf doesnt't accept it.


________________________________________
差出人: David Grayson <[email protected]>
送信日時: 2016年11月13日 08:30
宛先: [email protected]
件名: 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 <[email protected]> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
From 9ddfb4049e27601a690ddd1e851d1b1729f9bd86 Mon Sep 17 00:00:00 2001
From: Yuta Nakai <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to