cvs commit: src/lib/libc/alpha/gen divrem.m4 src/sys/alpha/alpha divrem.m4

Peter Edwards peadar at FreeBSD.org
Sat Nov 27 12:59:49 PST 2004


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


More information about the cvs-src mailing list