Summary

isinf not available on Solaris

Metadata

Attachments

Description

Claude marinier reported:

 >> Building chicken 4.7.0 on Solaris 10 running on SPARC (M5000) with gcc
 >> 3.4.6 from SunFreeware.
 >>
 >> Linking chicken fails with missing isinf. Added definition to
 >> chicken.h after line 954.
 
 #ifndef isinf
 # define isinf(x) \
      (sizeof (x) == sizeof (long double) ? isinf_ld (x) \
       : sizeof (x) == sizeof (double) ? isinf_d (x) \
       : isinf_f (x))
 static inline int isinf_f  (float       x)
 { return !isnan (x) && isnan (x - x); }
 static inline int isinf_d  (double      x)
 { return !isnan (x) && isnan (x - x); }
 static inline int isinf_ld (long double x)
 { return !isnan (x) && isnan (x - x); }
 #endif

See also:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7151

Changes and comments

[2011-07-11 00:05:19 UTC] felix attached solaris-gcc-definitions.txt (description=gcc -dM output of Claude's machine)

[2011-07-18 00:04:20 UTC] felix changed status from new to closed

[2011-07-18 00:04:20 UTC] felix set resolution to fixed

[2011-07-18 00:04:20 UTC] felix wrote:

Applied in master.

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted