Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 2004 20:59:49 +0000 (UTC)
From:      Peter Edwards <peadar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/alpha/gen divrem.m4 src/sys/alpha/alpha divrem.m4
Message-ID:  <200411272059.iARKxnwJ041503@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
peadar      2004-11-27 20:59:49 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/alpha/gen   divrem.m4 
    sys/alpha/alpha      divrem.m4 
  Log:
  When required to negate the absoulte result of a division/remainder
  operation (by subtracting the absolute result from 0), don't test
  for overflow.
  
  This avoids an arithmetic exception when dividing LONG_MIN by 1:
  This is the only case that causes overflow, and the resulting value
  is correct under 2's compliment arithmetic.
  
  PR:             72024
  Approved by:    dwmalone@
  Obtained from:  NetBSD
  MFC after:      4 days
  
  Revision  Changes    Path
  1.4       +1 -1      src/lib/libc/alpha/gen/divrem.m4
  1.4       +1 -1      src/sys/alpha/alpha/divrem.m4



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