--- mstools/h/math.h 2018/08/09 18:20:01 1.1 +++ mstools/h/math.h 2018/08/09 18:20:28 1.1.1.2 @@ -1,7 +1,7 @@ /*** *math.h - definitions and declarations for math library * -* Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved. * *Purpose: * This file contains constant definitions and external subroutine @@ -17,9 +17,11 @@ extern "C" { #endif +#ifndef MIPS #if (_MSC_VER <= 600) #define __cdecl _cdecl #endif +#endif /* definition of _exception struct - this struct is passed to the matherr * routine when a floating point exception is detected @@ -79,8 +81,13 @@ struct _complex { * for a value returned in case of error by a number of the floating point * math routines */ - +#ifdef _DLL +#define _HUGE (*_HUGE_dll) +extern double * _HUGE_dll; +#else extern double _HUGE; +#endif + #define HUGE_VAL _HUGE /* function prototypes */ @@ -95,14 +102,10 @@ double _cabs(struct _complex); double ceil(double); double cos(double); double cosh(double); -int _dieeetomsbin(double *, double *); -int _dmsbintoieee(double *, double *); double exp(double); double fabs(double); -int _fieeetomsbin(float *, float *); double floor(double); double fmod(double, double); -int _fmsbintoieee(float *, float *); double frexp(double, int *); double _hypot(double, double); double _j0(double); @@ -141,13 +144,14 @@ double _yn(int, double); #define matherr _matherr +#ifdef _DLL +#define HUGE (*HUGE_dll) +extern double * HUGE_dll; +#else extern double HUGE; +#endif #define cabs _cabs -#define dieeetomsbin _dieeetomsbin -#define dmsbintoieee _dmsbintoieee -#define fieeetomsbin _fieeetomsbin -#define fmsbintoieee _fmsbintoieee #define hypot _hypot #define j0 _j0 #define j1 _j1