Ignore:
Timestamp:
Dec 20, 1999, 12:47:20 PM (26 years ago)
Author:
sandervl
Message:

Added qsort, ftol, CIpow, ltoa, ultoa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/crt.cpp

    r1955 r2159  
    1 /* $Id: crt.cpp,v 1.12 1999-12-03 11:56:26 sandervl Exp $ */
     1/* $Id: crt.cpp,v 1.13 1999-12-20 11:47:00 sandervl Exp $ */
    22
    33/*
     
    2323#include "ntdll.h"
    2424#include <heapstring.h>
     25#include "arith64.h"
    2526
    2627/*
     
    13101311 *****************************************************************************/
    13111312
    1312 LONG CDECL NTDLL__CIpow(double x, double y)
    1313 {
    1314   dprintf(("NTDLL: _CIpow\n"));
    1315   dprintf(("should be register function\n"));
    1316   return pow(x, y);
     1313LONG CDECL NTDLL__CIpow()
     1314{
     1315        double x,y;
     1316        POP_FPU(y);
     1317        POP_FPU(x);
     1318        return pow(x,y);
    13171319}
    13181320
     
    13321334LONG CDECL NTDLL__ftol(void)
    13331335{
    1334   dprintf(("NTDLL: _ftol not implemented.\n"));
    1335 
    1336   return 0;
     1336        /* don't just do DO_FPU("fistp",retval), because the rounding
     1337         * mode must also be set to "round towards zero"... */
     1338        double fl;
     1339        POP_FPU(fl);
     1340        return (LONG)fl;
    13371341}
    13381342
     
    13521356LPSTR  CDECL NTDLL__ltoa(long x,LPSTR buf,INT radix)
    13531357{
    1354   dprintf(("NTDLL: _ltoa(%08xh, %08xh, %08xh) not implemented\n",
    1355            x,
    1356            buf,
    1357            radix));
    1358 
    1359   return 0;
     1358    return ltoa(x,buf,radix);
    13601359}
    13611360
     
    16191618LPSTR  CDECL NTDLL__ultoa(long x,LPSTR buf,INT radix)
    16201619{
    1621   dprintf(("NTDLL: _ultoa(%08xh, %08xh, %08xh) not implemented\n",
    1622            x,
    1623            buf,
    1624            radix));
    1625 
    1626   return 0;
     1620    return ultoa(x,buf,radix);
    16271621}
    16281622
     
    18631857
    18641858
    1865 /*****************************************************************************
    1866  * Name      :
    1867  * Purpose   :
    1868  * Parameters:
    1869  * Variables :
    1870  * Result    :
    1871  * Remark    : NTDLL.909
    1872  * Status    :
    1873  *
    1874  * Author    : Jens Wiessner
    1875  *****************************************************************************/
    1876 
    1877 void CDECL NTDLL_qsort( void *base, size_t nmemb, size_t size,
    1878                         int (*compar)( const void *s1, const void *s2 ))
    1879 {
    1880     dprintf(("NTDLL: qsort(%08xh, %08xh, %08xh, %08xh) not implemented.\n",
    1881                 base, nmemb, size, compar));
    1882 }
    1883 
    18841859
    18851860/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.