1
35
这太尴尬了。
编译器(在本例中是GCC)优化比较和
-ffast-math Sets -fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range. This option causes the preprocessor macro __FAST_MATH__ to be defined. This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions.
注意结尾的句子-
|
2
4
这是我在测试套件中使用的:
|
3
1
这看起来像是库的实现中的一个bug
编辑
:带
|
4
0
有一个C99 isnan(),您应该可以使用它。 如果在您的实现中它不能正常工作(那是哪一个?)你可以实现你自己的,通过重新解释你铸造到长和做IEEE位魔术。 |
5
0
这可能是不可移植的,但如果你确定你的平台,它可以接受。更多: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlf101l.doc/xlfopg/fpieee.htm |
6
-3
这是根据维基百科文章发表的评论。请注意,它是完全未经测试的--它应该给你一个想法,你可以做的事情,虽然。
编辑:我真的认为你应该考虑向GLibc的人提交一个bug。 |
rookie · 检查函数模板的所有参数包参数是否属于int 1 年前 |
ivaigult · -W转换和隐式字符串到布尔类型转换 1 年前 |
rainer · 后台插入程序的初始化 1 年前 |
Community wiki · 以理智、安全和高效的方式复制文件 1 年前 |
Shefali Kanaujia · 对C中向量的向量进行排序++ 1 年前 |
Ma Joonyoung · 粗粒度和细粒度链表的时间比较 1 年前 |