Re: Trouble with exp() on S/Linux? - Mailing list pgsql-hackers

From Keith Parks
Subject Re: Trouble with exp() on S/Linux?
Date
Msg-id 199801091830.SAA05395@mtcc.demon.co.uk
Whole thread Raw
In response to Trouble with exp() on S/Linux?  (Keith Parks <emkxp01@mtcc.demon.co.uk>)
List pgsql-hackers
Tom,

Thanks for your testing and feedback.

I got the attached reply from Jakub Jelinek on the "sparclinux" list which
explains the problem.

I guess that your sparc20 does not need help from the kernel with this math.

If you get chance to try a snapshot I'd be interested in your experiences.

Thanks,
Keith.

BTW: I used the linux-elf template with a few minor changes.

*** linux-elf   Sat Oct 25 09:49:56 1997
--- sparc-linux-elf     Thu Jan  8 16:56:44 1998
***************
*** 1,9 ****
  AROPT:crs
! CFLAGS:-O2 -m486
! SHARED_LIB:-fpic
  ALL:
  SRCH_INC:/usr/include/ncurses /usr/include/readline
! SRCH_LIB:
  USE_LOCALE:no
  DLSUFFIX:.so
  YFLAGS:-d
--- 1,9 ----
  AROPT:crs
! CFLAGS:-O2
! SHARED_LIB:-fPIC
  ALL:
  SRCH_INC:/usr/include/ncurses /usr/include/readline
! SRCH_LIB:/usr/local/lib
  USE_LOCALE:no
  DLSUFFIX:.so
  YFLAGS:-d
------------- Begin Forwarded Message -------------

From: Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
Subject: Re: Trouble with exp() on S/Linux?
To: emkxp01@mtcc.demon.co.uk
Date: Fri, 9 Jan 1998 17:32:16 +0100 (MET)
Mime-Version: 1.0
X-Orcpt: rfc822;sparclinux@vger.rutgers.edu

> Many of the failures come from floating point exceptions.
>
> I've written a small c prog to demonstrate the problem which seems to
> show that using exp() on a number less than 1.0e-150 gives an FPE.
>
> Can anyone tell me what's broken, if anything.
Kernel is broken.
> Expected behaviour???

No, just need to be fixed. On some FPUs hw expect subnormal calculations to
be emulated in software and kernel is not doing that. We have support for
this for sparc64, it just needs to be backported.

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.0.32 on a sparc machine (291.64 BogoMips).
___________________________________________________________________


------------- End Forwarded Message -------------



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] varchar/char size
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Disk block size issues.