Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 09:06:01 -0800 (PST)
From:      Robert Drehmel <robert@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib strtod.c
Message-ID:  <200211141706.gAEH61aK069351@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
robert      2002/11/14 09:06:01 PST

  Modified files:
    lib/libc/stdlib      strtod.c 
  Log:
  Define `Sudden_Underflow' when compiling for the Alpha
  architecture, mainly to avoid getting a SIGFPE signal sent
  when calling strtod(3) with certain input.
  
  The SIGFPE has been sent because the code was not aware that
  a Gradual Underflow is handled in software via traps on the
  Alpha architecture, but is not implemented in our Alpha kernel
  layer.
  
  With `Sudden_Underflow' defined, strtod(3) should not depend
  on Gradual Underflow and adjust its calculations accordingly,
  which means that other, more subtle errors than the sending of
  SIGFPE could be solved by this.
  
  Discussed with: bde
  PR:             alpha/12623
  PR:             alpha/17032
  PR:             alpha/43567
  MFC after:      7 days
  
  Revision  Changes    Path
  1.25      +3 -0      src/lib/libc/stdlib/strtod.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211141706.gAEH61aK069351>