Re: NAN in libgnomeui
- From: George <jirka 5z com>
- To: Gnome Mailing List <gnome nuclecu unam mx>
- Subject: Re: NAN in libgnomeui
- Date: Tue, 21 Apr 1998 23:28:25 -0700
> > Someone checked in some code for gnome-calculator.c which assigns the
> > constant NAN to some variables.
> > Under Solaris 2.5, such a constant does not exist. There are only some
> > defines which return true if a value is a NAN.
> > I don't know how to replace NAN with a portable equivalent.
> > Under Solaris, a value is a NAN when its exponent is 2047.
>
> So I'm not the only one trying to compile this under Solaris. I just
> commented gnome-calculator out of the Makefile. (It's useless to me
> anyways, I only use RPN.)
I'm using finite function instead of NAN which should be more portable
and leads to nicer code
if you like RPN, try genius ... it can run in RPN mode
George
--
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
The following implements RSA in perl and is illegal to export from the US:
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]