Changeset 3370 for trunk/src


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

div fix

Location:
trunk/src/crtdll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/asmhlp.asm

    r2177 r3370  
    1 ; $Id: asmhlp.asm,v 1.1 1999-12-21 12:27:11 sandervl Exp $
     1; $Id: asmhlp.asm,v 1.2 2000-04-13 18:46:15 sandervl Exp $
    22
    33.586P
     
    1414_POP_FPU endp
    1515
     16public          _SetEDX
     17_SetEDX proc near
     18        mov     edx, [esp+4];
     19        ret
     20_SetEDX endp
     21
    1622CODE32          ENDS
    1723
  • trunk/src/crtdll/asmhlp.h

    r2177 r3370  
    1 // $Id: asmhlp.h,v 1.1 1999-12-21 12:27:11 sandervl Exp $
     1// $Id: asmhlp.h,v 1.2 2000-04-13 18:46:15 sandervl Exp $
    22#ifndef __ASMHLP_H__
    33#define __ASMHLP_H__
     
    55void CDECL POP_FPU(double &fpval);
    66
     7void CDECL SetEDX(ULONG edx);
     8
    79#endif
  • 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.