Re: Trouble with exp() on S/Linux?

From: Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>
To: szybist(at)boxhill(dot)com, hackers(at)postgresql(dot)org
Subject: Re: Trouble with exp() on S/Linux?
Date: 1998-01-09 18:30:59
Message-ID: 199801091830.SAA05395@mtcc.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sunsite(dot)ms(dot)mff(dot)cuni(dot)cz>
Subject: Re: Trouble with exp() on S/Linux?
To: emkxp01(at)mtcc(dot)demon(dot)co(dot)uk
Date: Fri, 9 Jan 1998 17:32:16 +0100 (MET)
Mime-Version: 1.0
X-Orcpt: rfc822;sparclinux(at)vger(dot)rutgers(dot)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(at)sunsite(dot)mff(dot)cuni(dot)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 -------------

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-01-09 18:36:15 Re: [HACKERS] Disk block size issues.
Previous Message Bruce Momjian 1998-01-09 18:21:38 Re: [HACKERS] varchar/char size