Issue #5160 has been reported by Naohisa Goto.

----------------------------------------
Bug #5160: Float::INFINITY and Float::NAN incorrect in big endian architecture
http://redmine.ruby-lang.org/issues/5160

Author: Naohisa Goto
Status: Open
Priority: Normal
Assignee: Naohisa Goto
Category: 
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-08-05) [sparc-solaris2.10]


Big endian ???CPU????BYTE_ORDER ?????(#define)??????????????????????????INFINITY ??? NAN ???????義?????????Float::INFINITY ????????? Float::NAN ??????????????????????????(?????????????make test-all ??????????F???????????)
??????????? sparc Solaris 10 + gcc 4.4 ???????????????

 % ./miniruby -v -e 'p Float::INFINITY; p Float::NAN'
 ruby 1.9.3dev (2011-08-05) [sparc-solaris2.10]
 4.609571298396486e-41
 6.905458702346266e-41

?????????????????????????????????????????????????????????????????????????

numeric.c ????????以???????????? byte order ????????????????????????????
 #elif BYTE_ORDER == LITTLE_ENDIAN
BYTE_ORDER ??? LITTLE_ENDIAN ??両????????義????????CPU????????????? little endian ?????????????????????????

解決??????????configure???big endian???????????????????????????????big endian????????? config.h????義???????????????
 #define WORDS_BIGENDIAN 1
?????????????????????????????????????????????????????????????????

numeric.c 以????? BYTE_ORDER ?????桦使????????????????????????????????
(ext/digest/sha2/ ???使??????????????sha2.h ?????? #ifdef WORDS_BIGENDIAN ??????????????????????義??????????????)


-- 
http://redmine.ruby-lang.org