<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《跨编译器的 C 语言 NaN 支持 (纠正)》的评论</title>
	<atom:link href="http://blog.upsuper.org/nan-support-for-cross-compiler-of-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.upsuper.org/nan-support-for-cross-compiler-of-c/</link>
	<description>the place where there are some ghost appearing...</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:02:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>作者：XYY</title>
		<link>http://blog.upsuper.org/nan-support-for-cross-compiler-of-c/comment-page-1/#comment-5370</link>
		<dc:creator>XYY</dc:creator>
		<pubDate>Wed, 04 May 2011 09:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.upsuper.org/?p=933#comment-5370</guid>
		<description>正需要这个, 谢谢.

另外查到 C99 其实是有个宏用来做这种事的 isnan(x)

参考:
http://linux.die.net/man/3/isnan
http://www.gnu.org/s/hello/manual/autoconf/Function-Portability.html

奇怪的是上面网址二里面的代码分情况讨论了....难道怕 &quot;!=&quot; 没正确重载?

#ifndef isnan
# define isnan(x) \
(sizeof (x) == sizeof (long double) ? isnan_ld (x) \
: sizeof (x) == sizeof (double) ? isnan_d (x) \
: isnan_f (x))
static inline int isnan_f  (float       x) { return x != x; }
static inline int isnan_d  (double      x) { return x != x; }
static inline int isnan_ld (long double x) { return x != x; }
#endif</description>
		<content:encoded><![CDATA[<p>正需要这个, 谢谢.</p>
<p>另外查到 C99 其实是有个宏用来做这种事的 isnan(x)</p>
<p>参考:<br />
<a href="http://linux.die.net/man/3/isnan" rel="nofollow">http://linux.die.net/man/3/isnan</a><br />
<a href="http://www.gnu.org/s/hello/manual/autoconf/Function-Portability.html" rel="nofollow">http://www.gnu.org/s/hello/manual/autoconf/Function-Portability.html</a></p>
<p>奇怪的是上面网址二里面的代码分情况讨论了&#8230;.难道怕 “!=” 没正确重载?</p>
<p>#ifndef isnan<br />
# define isnan(x) \<br />
(sizeof (x) == sizeof (long double) ? isnan_ld (x) \<br />
: sizeof (x) == sizeof (double) ? isnan_d (x) \<br />
: isnan_f (x))<br />
static inline int isnan_f  (float       x) { return x != x; }<br />
static inline int isnan_d  (double      x) { return x != x; }<br />
static inline int isnan_ld (long double x) { return x != x; }<br />
#endif</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：KUN LIN</title>
		<link>http://blog.upsuper.org/nan-support-for-cross-compiler-of-c/comment-page-1/#comment-2726</link>
		<dc:creator>KUN LIN</dc:creator>
		<pubDate>Fri, 26 Feb 2010 18:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.upsuper.org/?p=933#comment-2726</guid>
		<description>可是就连Google的网站也未必都能通过W3C的严格HTML标准检测</description>
		<content:encoded><![CDATA[<p>可是就连Google的网站也未必都能通过W3C的严格HTML标准检测</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：方便使用 VC6 编译器的小脚本 - 鬼の领地</title>
		<link>http://blog.upsuper.org/nan-support-for-cross-compiler-of-c/comment-page-1/#comment-2124</link>
		<dc:creator>方便使用 VC6 编译器的小脚本 - 鬼の领地</dc:creator>
		<pubDate>Sat, 09 Jan 2010 05:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.upsuper.org/?p=933#comment-2124</guid>
		<description>[...] 昨天的那篇日志跨编译器的 C 语言 NaN 支持当中讲到了如何在 Linux 下用 wine 执行 VC6 编译器编译程序，不过总觉得还是有那么些麻烦，要把待编译的文件复制到 VC6 的安装目录，还要写那么长一串东西。要是能像调用 GCC 那么方便就好了~ [...]</description>
		<content:encoded><![CDATA[<p>[...] 昨天的那篇日志跨编译器的 C 语言 NaN 支持当中讲到了如何在 Linux 下用 wine 执行 VC6 编译器编译程序，不过总觉得还是有那么些麻烦，要把待编译的文件复制到 VC6 的安装目录，还要写那么长一串东西。要是能像调用 GCC 那么方便就好了~ [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

