[前][次][番号順一覧][スレッド一覧]

ruby-changes:14928

From: nobu <ko1@a...>
Date: Wed, 3 Mar 2010 06:21:26 +0900 (JST)
Subject: [ruby-changes:14928] Ruby:r26799 (trunk): * win32/win32.c (signbig): defined.

nobu	2010-03-03 06:19:33 +0900 (Wed, 03 Mar 2010)

  New Revision: 26799

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26799

  Log:
    * win32/win32.c (signbig): defined.

  Modified files:
    trunk/ChangeLog
    trunk/win32/Makefile.sub
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26798)
+++ ChangeLog	(revision 26799)
@@ -1,5 +1,7 @@
-Wed Mar  3 05:48:54 2010  Nobuyoshi Nakada  <nobu@r...>
+Wed Mar  3 06:19:25 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* win32/win32.c (signbig): defined.
+
 	* win32/Makefile.sub, symbian/setup (config.h): pack.c requires
 	  SIZEOF_INT*_T now.
 
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 26798)
+++ win32/win32.c	(revision 26799)
@@ -5272,3 +5272,14 @@
     return _ftol(d);
 }
 #endif
+
+int
+signbit(double x)
+{
+#ifdef _M_IX86
+    int *ip = (int *)(&x + 1) - 1;
+    return *ip < 0;
+#else
+# error not supported
+#endif
+}
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 26798)
+++ win32/Makefile.sub	(revision 26799)
@@ -552,6 +552,7 @@
 #define HAVE_COSH 1
 #define HAVE_SINH 1
 #define HAVE_TANH 1
+#define HAVE_SIGNBIT 1
 #define HAVE_TZNAME 1
 #define HAVE_DAYLIGHT 1
 #define SETPGRP_VOID 1

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]