Ignore:
Timestamp:
Apr 13, 2000, 8:46:15 PM (25 years ago)
Author:
sandervl
Message:

div fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/crtdll.cpp

    r2855 r3370  
    1 /* $Id: crtdll.cpp,v 1.24 2000-02-21 23:11:30 sandervl Exp $ */
     1/* $Id: crtdll.cpp,v 1.25 2000-04-13 18:46:15 sandervl Exp $ */
    22
    33/*
     
    23022302 *                  div         (CRTDLL.355)
    23032303 */
    2304 div_t CDECL CRTDLL_div( int numer, int denom )
    2305 {
     2304ULONG CDECL CRTDLL_div( int number, int denom )
     2305{
     2306 div_t divt;
     2307
    23062308  dprintf2(("CRTDLL: div\n"));
    2307   return (div(numer, denom));
     2309  divt = (div(number, denom));
     2310  SetEDX(divt.rem); //NOTE: make sure the compiler doesn't overwrite edx!
     2311  return divt.quot;
    23082312}
    23092313
Note: See TracChangeset for help on using the changeset viewer.