Ignore:
Timestamp:
Jan 8, 2000, 3:24:04 PM (26 years ago)
Author:
sandervl
Message:

Fixed many register based floating point exports

File:
1 edited

Legend:

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

    r2346 r2372  
    1 /* $Id: crt.cpp,v 1.4 2000-01-06 20:08:06 sandervl Exp $ */
     1/* $Id: crt.cpp,v 1.5 2000-01-08 14:24:03 sandervl Exp $ */
    22
    33/*
     
    13161316        POP_FPU(x);
    13171317        return pow(x,y);
     1318}
     1319
     1320
     1321/*********************************************************************
     1322 *                  _CIacos    (CRTDLL.004)
     1323 */
     1324double CDECL CRTDLL__CIacos()
     1325{
     1326 double x;
     1327
     1328  dprintf2(("CRTDLL: _CIacos\n"));
     1329  POP_FPU(x);
     1330  return acos(x);
     1331}
     1332
     1333
     1334/*********************************************************************
     1335 *                  _CIasin    (CRTDLL.005)
     1336 */
     1337double CDECL CRTDLL__CIasin()
     1338{
     1339 double x;
     1340
     1341  dprintf2(("CRTDLL: _CIasin\n"));
     1342  POP_FPU(x);
     1343  return asin(x);
     1344}
     1345
     1346
     1347/*********************************************************************
     1348 *                  _CIatan    (CRTDLL.006)
     1349 */
     1350double CDECL CRTDLL__CIatan()
     1351{
     1352 double x;
     1353
     1354  dprintf2(("CRTDLL: _CIatan\n"));
     1355  POP_FPU(x);
     1356  return atan(x);
     1357}
     1358
     1359
     1360/*********************************************************************
     1361 *                  _CIatan2    (CRTDLL.007)
     1362 */
     1363double CDECL CRTDLL__CIatan2()
     1364{
     1365 double x, y;
     1366
     1367  dprintf2(("CRTDLL: _CIatan2\n"));
     1368  POP_FPU(y);
     1369  POP_FPU(x);
     1370  return atan2(x,y);
     1371}
     1372
     1373
     1374/*********************************************************************
     1375 *                  _CIcos    (CRTDLL.008)
     1376 */
     1377double CDECL CRTDLL__CIcos()
     1378{
     1379 double x;
     1380
     1381  dprintf2(("CRTDLL: _CIcos\n"));
     1382  POP_FPU(x);
     1383  return cos(x);
     1384}
     1385
     1386
     1387/*********************************************************************
     1388 *                  _CIcosh    (CRTDLL.009)
     1389 */
     1390double CDECL CRTDLL__CIcosh()
     1391{
     1392 double x;
     1393
     1394  dprintf2(("CRTDLL: _CIcosh\n"));
     1395  POP_FPU(x);
     1396  return cosh(x);
     1397}
     1398
     1399
     1400/*********************************************************************
     1401 *                  _CIexp    (CRTDLL.010)
     1402 */
     1403double CDECL CRTDLL__CIexp()
     1404{
     1405 double x;
     1406
     1407  dprintf2(("CRTDLL: _CIexp\n"));
     1408  POP_FPU(x);
     1409  return exp(x);
     1410}
     1411
     1412
     1413/*********************************************************************
     1414 *                  _CIfmod     (CRTDLL.011)
     1415 */
     1416double CDECL CRTDLL__CIfmod( )
     1417{
     1418 double x, y;
     1419
     1420  dprintf2(("CRTDLL: _CIfmod\n"));
     1421  POP_FPU(y);
     1422  POP_FPU(x);
     1423  return fmod(x,y);
     1424}
     1425
     1426
     1427/*********************************************************************
     1428 *                  _CIlog    (CRTDLL.012)
     1429 */
     1430double CDECL CRTDLL__CIlog()
     1431{
     1432 double x;
     1433
     1434  dprintf2(("CRTDLL: _CIlog\n"));
     1435  POP_FPU(x);
     1436  return log(x);
     1437}
     1438
     1439
     1440/*********************************************************************
     1441 *                  _CIlog10    (CRTDLL.013)
     1442 */
     1443double CDECL CRTDLL__CIlog10()
     1444{
     1445 double x;
     1446
     1447  dprintf2(("CRTDLL: _CIlog10\n"));
     1448  POP_FPU(x);
     1449  return log10(x);
     1450}
     1451
     1452
     1453/*********************************************************************
     1454 *                  _CIsin     (CRTDLL.015)
     1455 */
     1456double CDECL CRTDLL__CIsin()
     1457{
     1458 double x;
     1459
     1460  dprintf2(("CRTDLL: _CIsin\n"));
     1461  POP_FPU(x);
     1462  return sin(x);
     1463}
     1464
     1465
     1466/*********************************************************************
     1467 *                  _CIsinh    (CRTDLL.016)
     1468 */
     1469double CDECL CRTDLL__CIsinh()
     1470{
     1471 double x;
     1472
     1473  dprintf2(("CRTDLL: _CIsinh\n"));
     1474  POP_FPU(x);
     1475  return sinh(x);
     1476}
     1477
     1478
     1479/*********************************************************************
     1480 *                  _CIsqrt    (CRTDLL.017)
     1481 */
     1482double CDECL CRTDLL__CIsqrt()
     1483{
     1484 double x;
     1485
     1486  dprintf2(("CRTDLL: _CIsqrt\n"));
     1487  POP_FPU(x);
     1488  return sqrt(x);
     1489}
     1490
     1491
     1492/*********************************************************************
     1493 *                  _CItan    (CRTDLL.018)
     1494 */
     1495double CDECL CRTDLL__CItan()
     1496{
     1497 double x;
     1498
     1499  dprintf2(("CRTDLL: _CItan\n"));
     1500  POP_FPU(x);
     1501  return tan(x);
     1502}
     1503
     1504
     1505/*********************************************************************
     1506 *                  _CItanh    (CRTDLL.019)
     1507 */
     1508double CDECL CRTDLL__CItanh()
     1509{
     1510 double x;
     1511
     1512  dprintf2(("CRTDLL: _CItanh\n"));
     1513  POP_FPU(x);
     1514  return tanh(x);
    13181515}
    13191516
Note: See TracChangeset for help on using the changeset viewer.