2 * msvcrt.dll math functions
4 * Copyright 2000 Jon Griffiths
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #define __USE_ISOC9X 1
24 #define __USE_ISOC99 1
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
37 #ifndef finite /* Could be a macro */
39 #define finite(x) isfinite(x)
41 #define finite(x) (!isnan(x)) /* At least catch some cases */
50 typedef int (*MSVCRT_matherr_func)(struct MSVCRT__exception *);
52 static MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL;
54 /*********************************************************************
55 * MSVCRT_acos (MSVCRT.@)
57 double MSVCRT_acos( double x )
59 if (x < -1.0 || x > 1.0 || !finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
63 /*********************************************************************
64 * MSVCRT_asin (MSVCRT.@)
66 double MSVCRT_asin( double x )
68 if (x < -1.0 || x > 1.0 || !finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
72 /*********************************************************************
73 * MSVCRT_atan (MSVCRT.@)
75 double MSVCRT_atan( double x )
77 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
81 /*********************************************************************
82 * MSVCRT_atan2 (MSVCRT.@)
84 double MSVCRT_atan2( double x, double y )
86 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
90 /*********************************************************************
91 * MSVCRT_cos (MSVCRT.@)
93 double MSVCRT_cos( double x )
95 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
99 /*********************************************************************
100 * MSVCRT_cosh (MSVCRT.@)
102 double MSVCRT_cosh( double x )
104 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
108 /*********************************************************************
109 * MSVCRT_exp (MSVCRT.@)
111 double MSVCRT_exp( double x )
113 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
117 /*********************************************************************
118 * MSVCRT_fmod (MSVCRT.@)
120 double MSVCRT_fmod( double x, double y )
122 if (!finite(x) || !finite(y)) *MSVCRT__errno() = MSVCRT_EDOM;
126 /*********************************************************************
127 * MSVCRT_log (MSVCRT.@)
129 double MSVCRT_log( double x)
131 if (x < 0.0 || !finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
132 if (x == 0.0) *MSVCRT__errno() = MSVCRT_ERANGE;
136 /*********************************************************************
137 * MSVCRT_log10 (MSVCRT.@)
139 double MSVCRT_log10( double x )
141 if (x < 0.0 || !finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
142 if (x == 0.0) *MSVCRT__errno() = MSVCRT_ERANGE;
146 /*********************************************************************
147 * MSVCRT_pow (MSVCRT.@)
149 double MSVCRT_pow( double x, double y )
151 /* FIXME: If x < 0 and y is not integral, set EDOM */
153 if (!finite(z)) *MSVCRT__errno() = MSVCRT_EDOM;
157 /*********************************************************************
158 * MSVCRT_sin (MSVCRT.@)
160 double MSVCRT_sin( double x )
162 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
166 /*********************************************************************
167 * MSVCRT_sinh (MSVCRT.@)
169 double MSVCRT_sinh( double x )
171 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
175 /*********************************************************************
176 * MSVCRT_sqrt (MSVCRT.@)
178 double MSVCRT_sqrt( double x )
180 if (x < 0.0 || !finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
184 /*********************************************************************
185 * MSVCRT_tan (MSVCRT.@)
187 double MSVCRT_tan( double x )
189 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
193 /*********************************************************************
194 * MSVCRT_tanh (MSVCRT.@)
196 double MSVCRT_tanh( double x )
198 if (!finite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
203 #if defined(__GNUC__) && defined(__i386__)
205 #define FPU_DOUBLE(var) double var; \
206 __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : )
207 #define FPU_DOUBLES(var1,var2) double var1,var2; \
208 __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var2) : ); \
209 __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var1) : )
211 /*********************************************************************
217 return MSVCRT_acos(x);
220 /*********************************************************************
226 return MSVCRT_asin(x);
229 /*********************************************************************
235 return MSVCRT_atan(x);
238 /*********************************************************************
239 * _CIatan2 (MSVCRT.@)
241 double _CIatan2(void)
244 return MSVCRT_atan2(x,y);
247 /*********************************************************************
253 return MSVCRT_cos(x);
256 /*********************************************************************
262 return MSVCRT_cosh(x);
265 /*********************************************************************
271 return MSVCRT_exp(x);
274 /*********************************************************************
280 return MSVCRT_fmod(x,y);
283 /*********************************************************************
289 return MSVCRT_log(x);
292 /*********************************************************************
293 * _CIlog10 (MSVCRT.@)
295 double _CIlog10(void)
298 return MSVCRT_log10(x);
301 /*********************************************************************
307 return MSVCRT_pow(x,y);
310 /*********************************************************************
316 return MSVCRT_sin(x);
319 /*********************************************************************
325 return MSVCRT_sinh(x);
328 /*********************************************************************
334 return MSVCRT_sqrt(x);
337 /*********************************************************************
343 return MSVCRT_tan(x);
346 /*********************************************************************
352 return MSVCRT_tanh(x);
355 #else /* defined(__GNUC__) && defined(__i386__) */
357 /* The above cannot be called on non x86 platforms, stub them for linking */
359 #define IX86_ONLY(func) double func(void) { return 0.0; }
378 #endif /* defined(__GNUC__) && defined(__i386__) */
380 /*********************************************************************
381 * _fpclass (MSVCRT.@)
383 int _fpclass(double num)
385 #if defined(HAVE_FPCLASS) || defined(fpclass)
386 switch (fpclass( num ))
389 case FP_SNAN: return MSVCRT__FPCLASS_SNAN;
392 case FP_QNAN: return MSVCRT__FPCLASS_QNAN;
395 case FP_NINF: return MSVCRT__FPCLASS_NINF;
398 case FP_PINF: return MSVCRT__FPCLASS_PINF;
401 case FP_NDENORM: return MSVCRT__FPCLASS_ND;
404 case FP_PDENORM: return MSVCRT__FPCLASS_PD;
407 case FP_NZERO: return MSVCRT__FPCLASS_NZ;
410 case FP_PZERO: return MSVCRT__FPCLASS_PZ;
413 case FP_NNORM: return MSVCRT__FPCLASS_NN;
416 case FP_PNORM: return MSVCRT__FPCLASS_PN;
419 return MSVCRT__FPCLASS_PN;
420 #elif defined (fpclassify)
421 switch (fpclassify( num ))
423 case FP_NAN: return MSVCRT__FPCLASS_QNAN;
424 case FP_INFINITE: return signbit(num) ? MSVCRT__FPCLASS_NINF : MSVCRT__FPCLASS_PINF;
425 case FP_SUBNORMAL: return signbit(num) ?MSVCRT__FPCLASS_ND : MSVCRT__FPCLASS_PD;
426 case FP_ZERO: return signbit(num) ? MSVCRT__FPCLASS_NZ : MSVCRT__FPCLASS_PZ;
428 return signbit(num) ? MSVCRT__FPCLASS_NN : MSVCRT__FPCLASS_PN;
431 return MSVCRT__FPCLASS_QNAN;
432 return num == 0.0 ? MSVCRT__FPCLASS_PZ : (num < 0 ? MSVCRT__FPCLASS_NN : MSVCRT__FPCLASS_PN);
436 /*********************************************************************
439 unsigned int _rotl(unsigned int num, int shift)
442 return (num << shift) | (num >> (32-shift));
445 /*********************************************************************
448 double _logb(double num)
450 if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
454 /*********************************************************************
457 unsigned long _lrotl(unsigned long num, int shift)
460 return (num << shift) | (num >> (32-shift));
463 /*********************************************************************
466 unsigned long _lrotr(unsigned long num, int shift)
469 return (num >> shift) | (num << (32-shift));
472 /*********************************************************************
475 unsigned int _rotr(unsigned int num, int shift)
478 return (num >> shift) | (num << (32-shift));
481 /*********************************************************************
484 double _scalb(double num, long power)
486 /* Note - Can't forward directly as libc expects y as double */
487 double dblpower = (double)power;
488 if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
489 return scalb(num, dblpower);
492 /*********************************************************************
495 double _hypot(double x, double y)
497 /* FIXME: errno handling */
498 return hypot( x, y );
501 /*********************************************************************
504 double MSVCRT_ceil( double x )
509 /*********************************************************************
512 double MSVCRT_floor( double x )
517 /*********************************************************************
520 double MSVCRT_fabs( double x )
525 /*********************************************************************
528 double MSVCRT_frexp( double x, int *exp )
530 return frexp( x, exp );
533 /*********************************************************************
536 double MSVCRT_modf( double x, double *iptr )
538 return modf( x, iptr );
541 /*********************************************************************
542 * _matherr (MSVCRT.@)
544 int MSVCRT__matherr(struct MSVCRT__exception *e)
547 TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2,
551 if (MSVCRT_default_matherr_func)
552 return MSVCRT_default_matherr_func(e);
553 ERR(":Unhandled math error!\n");
557 /*********************************************************************
558 * __setusermatherr (MSVCRT.@)
560 void MSVCRT___setusermatherr(MSVCRT_matherr_func func)
562 MSVCRT_default_matherr_func = func;
563 TRACE(":new matherr handler %p\n", func);
566 /**********************************************************************
567 * _statusfp (MSVCRT.@)
569 unsigned int _statusfp(void)
571 unsigned int retVal = 0;
572 #if defined(__GNUC__) && defined(__i386__)
575 __asm__ __volatile__( "fstsw %0" : "=m" (fpword) : );
576 if (fpword & 0x1) retVal |= MSVCRT__SW_INVALID;
577 if (fpword & 0x2) retVal |= MSVCRT__SW_DENORMAL;
578 if (fpword & 0x4) retVal |= MSVCRT__SW_ZERODIVIDE;
579 if (fpword & 0x8) retVal |= MSVCRT__SW_OVERFLOW;
580 if (fpword & 0x10) retVal |= MSVCRT__SW_UNDERFLOW;
581 if (fpword & 0x20) retVal |= MSVCRT__SW_INEXACT;
583 FIXME(":Not implemented!\n");
588 /*********************************************************************
589 * _clearfp (MSVCRT.@)
591 unsigned int _clearfp(void)
593 unsigned int retVal = _statusfp();
594 #if defined(__GNUC__) && defined(__i386__)
595 __asm__ __volatile__( "fnclex" );
597 FIXME(":Not Implemented\n");
602 /*********************************************************************
603 * __fpecode (MSVCRT.@)
607 return &msvcrt_get_thread_data()->fpecode;
610 /*********************************************************************
613 double MSVCRT_ldexp(double num, long exp)
615 double z = ldexp(num,exp);
618 *MSVCRT__errno() = MSVCRT_ERANGE;
619 else if (z == 0 && signbit(z))
620 z = 0.0; /* Convert -0 -> +0 */
624 /*********************************************************************
627 double MSVCRT__cabs(struct MSVCRT__complex num)
629 return sqrt(num.x * num.x + num.y * num.y);
632 /*********************************************************************
633 * _chgsign (MSVCRT.@)
635 double _chgsign(double num)
637 /* FIXME: +-infinity,Nan not tested */
641 /*********************************************************************
642 * _control87 (MSVCRT.@)
644 unsigned int _control87(unsigned int newval, unsigned int mask)
646 #if defined(__GNUC__) && defined(__i386__)
647 unsigned int fpword = 0;
648 unsigned int flags = 0;
650 TRACE("(%08x, %08x): Called\n", newval, mask);
652 /* Get fp control word */
653 __asm__ __volatile__( "fstcw %0" : "=m" (fpword) : );
655 TRACE("Control word before : %08x\n", fpword);
657 /* Convert into mask constants */
658 if (fpword & 0x1) flags |= MSVCRT__EM_INVALID;
659 if (fpword & 0x2) flags |= MSVCRT__EM_DENORMAL;
660 if (fpword & 0x4) flags |= MSVCRT__EM_ZERODIVIDE;
661 if (fpword & 0x8) flags |= MSVCRT__EM_OVERFLOW;
662 if (fpword & 0x10) flags |= MSVCRT__EM_UNDERFLOW;
663 if (fpword & 0x20) flags |= MSVCRT__EM_INEXACT;
664 switch(fpword & 0xC00) {
665 case 0xC00: flags |= MSVCRT__RC_UP|MSVCRT__RC_DOWN; break;
666 case 0x800: flags |= MSVCRT__RC_UP; break;
667 case 0x400: flags |= MSVCRT__RC_DOWN; break;
669 switch(fpword & 0x300) {
670 case 0x0: flags |= MSVCRT__PC_24; break;
671 case 0x200: flags |= MSVCRT__PC_53; break;
672 case 0x300: flags |= MSVCRT__PC_64; break;
674 if (fpword & 0x1000) flags |= MSVCRT__IC_AFFINE;
676 /* Mask with parameters */
677 flags = (flags & ~mask) | (newval & mask);
679 /* Convert (masked) value back to fp word */
681 if (flags & MSVCRT__EM_INVALID) fpword |= 0x1;
682 if (flags & MSVCRT__EM_DENORMAL) fpword |= 0x2;
683 if (flags & MSVCRT__EM_ZERODIVIDE) fpword |= 0x4;
684 if (flags & MSVCRT__EM_OVERFLOW) fpword |= 0x8;
685 if (flags & MSVCRT__EM_UNDERFLOW) fpword |= 0x10;
686 if (flags & MSVCRT__EM_INEXACT) fpword |= 0x20;
687 switch(flags & (MSVCRT__RC_UP | MSVCRT__RC_DOWN)) {
688 case MSVCRT__RC_UP|MSVCRT__RC_DOWN: fpword |= 0xC00; break;
689 case MSVCRT__RC_UP: fpword |= 0x800; break;
690 case MSVCRT__RC_DOWN: fpword |= 0x400; break;
692 switch (flags & (MSVCRT__PC_24 | MSVCRT__PC_53)) {
693 case MSVCRT__PC_64: fpword |= 0x300; break;
694 case MSVCRT__PC_53: fpword |= 0x200; break;
695 case MSVCRT__PC_24: fpword |= 0x0; break;
697 if (flags & MSVCRT__IC_AFFINE) fpword |= 0x1000;
699 TRACE("Control word after : %08x\n", fpword);
701 /* Put fp control word */
702 __asm__ __volatile__( "fldcw %0" : : "m" (fpword) );
706 FIXME(":Not Implemented!\n");
711 /*********************************************************************
712 * _controlfp (MSVCRT.@)
714 unsigned int _controlfp(unsigned int newval, unsigned int mask)
717 return _control87( newval, mask & ~MSVCRT__EM_DENORMAL );
719 FIXME(":Not Implemented!\n");
724 /*********************************************************************
725 * _copysign (MSVCRT.@)
727 double _copysign(double num, double sign)
729 /* FIXME: Behaviour for Nan/Inf? */
731 return num < 0.0 ? num : -num;
732 return num < 0.0 ? -num : num;
735 /*********************************************************************
738 int _finite(double num)
740 return (finite(num)?1:0); /* See comment for _isnan() */
743 /*********************************************************************
744 * _fpreset (MSVCRT.@)
748 #if defined(__GNUC__) && defined(__i386__)
749 __asm__ __volatile__( "fninit" );
751 FIXME(":Not Implemented!\n");
755 /*********************************************************************
758 INT _isnan(double num)
760 /* Some implementations return -1 for true(glibc), msvcrt/crtdll return 1.
761 * Do the same, as the result may be used in calculations
763 return isnan(num) ? 1 : 0;
766 /*********************************************************************
769 double _j0(double num)
771 /* FIXME: errno handling */
775 /*********************************************************************
778 double _j1(double num)
780 /* FIXME: errno handling */
784 /*********************************************************************
787 double _jn(int n, double num)
789 /* FIXME: errno handling */
793 /*********************************************************************
796 double _y0(double num)
799 if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
801 if (_fpclass(retval) == MSVCRT__FPCLASS_NINF)
803 *MSVCRT__errno() = MSVCRT_EDOM;
809 /*********************************************************************
812 double _y1(double num)
815 if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
817 if (_fpclass(retval) == MSVCRT__FPCLASS_NINF)
819 *MSVCRT__errno() = MSVCRT_EDOM;
825 /*********************************************************************
828 double _yn(int order, double num)
831 if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
832 retval = yn(order,num);
833 if (_fpclass(retval) == MSVCRT__FPCLASS_NINF)
835 *MSVCRT__errno() = MSVCRT_EDOM;
841 /*********************************************************************
842 * _nextafter (MSVCRT.@)
844 double _nextafter(double num, double next)
847 if (!finite(num) || !finite(next)) *MSVCRT__errno() = MSVCRT_EDOM;
848 retval = nextafter(num,next);
852 /*********************************************************************
855 char *_ecvt( double number, int ndigits, int *decpt, int *sign )
857 thread_data_t *data = msvcrt_get_thread_data();
860 if (!data->efcvt_buffer)
861 data->efcvt_buffer = MSVCRT_malloc( 80 ); /* ought to be enough */
863 snprintf(data->efcvt_buffer, 80, "%.*e", ndigits /* FIXME wrong */, number);
864 *sign = (number < 0);
865 dec = strchr(data->efcvt_buffer, '.');
866 *decpt = (dec) ? dec - data->efcvt_buffer : -1;
867 return data->efcvt_buffer;
870 /***********************************************************************
873 char *_fcvt( double number, int ndigits, int *decpt, int *sign )
875 thread_data_t *data = msvcrt_get_thread_data();
878 if (!data->efcvt_buffer)
879 data->efcvt_buffer = MSVCRT_malloc( 80 ); /* ought to be enough */
881 snprintf(data->efcvt_buffer, 80, "%.*e", ndigits, number);
882 *sign = (number < 0);
883 dec = strchr(data->efcvt_buffer, '.');
884 *decpt = (dec) ? dec - data->efcvt_buffer : -1;
885 return data->efcvt_buffer;
888 /***********************************************************************
891 * FIXME: uses both E and F.
893 char *_gcvt( double number, int ndigit, char *buff )
895 sprintf(buff, "%.*E", ndigit, number);
899 #include <stdlib.h> /* div_t, ldiv_t */
901 /*********************************************************************
904 * [i386] Windows binary compatible - returns the struct in eax/edx.
907 unsigned __int64 MSVCRT_div(int num, int denom)
909 div_t dt = div(num,denom);
910 return ((unsigned __int64)dt.rem << 32) | (unsigned int)dt.quot;
913 /*********************************************************************
916 * [!i386] Non-x86 can't run win32 apps so we don't need binary compatibility
918 MSVCRT_div_t MSVCRT_div(int num, int denom)
920 div_t dt = div(num,denom);
928 #endif /* ifdef __i386__ */
931 /*********************************************************************
934 * [i386] Windows binary compatible - returns the struct in eax/edx.
937 unsigned __int64 MSVCRT_ldiv(long num, long denom)
939 ldiv_t ldt = ldiv(num,denom);
940 return ((unsigned __int64)ldt.rem << 32) | (unsigned long)ldt.quot;
943 /*********************************************************************
946 * [!i386] Non-x86 can't run win32 apps so we don't need binary compatibility
948 MSVCRT_ldiv_t MSVCRT_ldiv(long num, long denom)
950 ldiv_t result = ldiv(num,denom);
953 ret.quot = result.quot;
954 ret.rem = result.rem;
958 #endif /* ifdef __i386__ */
960 /***********************************************************************
961 * _adj_fdiv_m16i (MSVCRT.@)
964 * I _think_ this function is intended to work around the Pentium
967 void __stdcall _adj_fdiv_m16i( short arg )
972 /***********************************************************************
973 * _adj_fdiv_m32 (MSVCRT.@)
976 * I _think_ this function is intended to work around the Pentium
979 void __stdcall _adj_fdiv_m32( unsigned int arg )
984 /***********************************************************************
985 * _adj_fdiv_m32i (MSVCRT.@)
988 * I _think_ this function is intended to work around the Pentium
991 void __stdcall _adj_fdiv_m32i( int arg )
996 /***********************************************************************
997 * _adj_fdiv_m64 (MSVCRT.@)
1000 * I _think_ this function is intended to work around the Pentium
1003 void __stdcall _adj_fdiv_m64( unsigned __int64 arg )
1005 TRACE("(): stub\n");
1008 /***********************************************************************
1009 * _adj_fdiv_r (MSVCRT.@)
1011 * This function is likely to have the wrong number of arguments.
1014 * I _think_ this function is intended to work around the Pentium
1017 void _adj_fdiv_r(void)
1019 TRACE("(): stub\n");
1022 /***********************************************************************
1023 * _adj_fdivr_m16i (MSVCRT.@)
1026 * I _think_ this function is intended to work around the Pentium
1029 void __stdcall _adj_fdivr_m16i( short arg )
1031 TRACE("(): stub\n");
1034 /***********************************************************************
1035 * _adj_fdivr_m32 (MSVCRT.@)
1038 * I _think_ this function is intended to work around the Pentium
1041 void __stdcall _adj_fdivr_m32( unsigned int arg )
1043 TRACE("(): stub\n");
1046 /***********************************************************************
1047 * _adj_fdivr_m32i (MSVCRT.@)
1050 * I _think_ this function is intended to work around the Pentium
1053 void __stdcall _adj_fdivr_m32i( int arg )
1055 TRACE("(): stub\n");
1058 /***********************************************************************
1059 * _adj_fdivr_m64 (MSVCRT.@)
1062 * I _think_ this function is intended to work around the Pentium
1065 void __stdcall _adj_fdivr_m64( unsigned __int64 arg )
1067 TRACE("(): stub\n");
1070 /***********************************************************************
1071 * _adj_fpatan (MSVCRT.@)
1073 * This function is likely to have the wrong number of arguments.
1076 * I _think_ this function is intended to work around the Pentium
1079 void _adj_fpatan(void)
1081 TRACE("(): stub\n");
1084 /***********************************************************************
1085 * _adj_fprem (MSVCRT.@)
1087 * This function is likely to have the wrong number of arguments.
1090 * I _think_ this function is intended to work around the Pentium
1093 void _adj_fprem(void)
1095 TRACE("(): stub\n");
1098 /***********************************************************************
1099 * _adj_fprem1 (MSVCRT.@)
1101 * This function is likely to have the wrong number of arguments.
1104 * I _think_ this function is intended to work around the Pentium
1107 void _adj_fprem1(void)
1109 TRACE("(): stub\n");
1112 /***********************************************************************
1113 * _adj_fptan (MSVCRT.@)
1115 * This function is likely to have the wrong number of arguments.
1118 * I _think_ this function is intended to work around the Pentium
1121 void _adj_fptan(void)
1123 TRACE("(): stub\n");
1126 /***********************************************************************
1127 * _adjust_fdiv (MSVCRT.@)
1129 * I _think_ this function should be a variable indicating whether
1130 * Pentium fdiv bug safe code should be used.
1132 void _adjust_fdiv(void)
1134 TRACE("(): stub\n");
1137 /***********************************************************************
1138 * _safe_fdiv (MSVCRT.@)
1140 * This function is likely to have the wrong number of arguments.
1143 * I _think_ this function is intended to work around the Pentium
1146 void _safe_fdiv(void)
1148 TRACE("(): stub\n");
1151 /***********************************************************************
1152 * _safe_fdivr (MSVCRT.@)
1154 * This function is likely to have the wrong number of arguments.
1157 * I _think_ this function is intended to work around the Pentium
1160 void _safe_fdivr(void)
1162 TRACE("(): stub\n");
1165 /***********************************************************************
1166 * _safe_fprem (MSVCRT.@)
1168 * This function is likely to have the wrong number of arguments.
1171 * I _think_ this function is intended to work around the Pentium
1174 void _safe_fprem(void)
1176 TRACE("(): stub\n");
1179 /***********************************************************************
1180 * _safe_fprem1 (MSVCRT.@)
1183 * This function is likely to have the wrong number of arguments.
1186 * I _think_ this function is intended to work around the Pentium
1189 void _safe_fprem1(void)
1191 TRACE("(): stub\n");