Floating point exceptions with -pthread

Marc Olzheim marcolz at stack.nl
Wed May 4 16:40:30 PDT 2005

On Wed, May 04, 2005 at 06:18:25PM -0400, David Schultz wrote:
> Yeah, that part is fine.  The one odd thing I notice as a glance
> back at the code is that it uses -12(%ebp) and -16(%ebp) for
> temporary storage, instead of using -4(%ebp) and -8(%ebp) like
> the double versions.  That's probably a cut-and-pasto on my
> part.


NetBSD cvsweb /usr/src/lib/libm/arch/i387/s_floorf.S:

Revision / (download) - annotate - [select for diffs], Thu Mar 28 22:55:09 2002 UTC (3 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up revision 1.5 (requested by fvdl):
  Fix stack usage so that a signal delivered in ceil() or floor()
  no longer corrupts the stack.

Versions before it looked an awful lot like the one we just fixed. :-/

It seems as though a look into the other NetBSD patches might be

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20050505/e498ff30/attachment.bin

More information about the freebsd-threads mailing list