ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

matherr.c
Go to the documentation of this file.
00001 #include <precomp.h>
00002 
00003 #define __USE_ISOC9X 1
00004 #define __USE_ISOC99 1
00005 #include <math.h>
00006 
00007 #ifdef HAVE_IEEEFP_H
00008 #include <ieeefp.h>
00009 #endif
00010 
00011 #ifndef HAVE_FINITE
00012 #ifndef finite /* Could be a macro */
00013 #ifdef isfinite
00014 #define finite(x) isfinite(x)
00015 #else
00016 #define finite(x) (!isnan(x)) /* At least catch some cases */
00017 #endif
00018 #endif
00019 #endif
00020 
00021 #ifndef signbit
00022 #define signbit(x) 0
00023 #endif
00024 
00025 typedef int (*MSVCRT_matherr_func)(struct _exception *);
00026 
00027 static MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL;
00028 
00029 int CDECL _matherr(struct _exception *e)
00030 {
00031   if (e)
00032     TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2,
00033           e->retval);
00034   else
00035     TRACE("(null)\n");
00036   if (MSVCRT_default_matherr_func)
00037     return MSVCRT_default_matherr_func(e);
00038   ERR(":Unhandled math error!\n");
00039   return 0;
00040 }
00041 
00042 /*********************************************************************
00043  *      __setusermatherr (MSVCRT.@)
00044  */
00045 void CDECL __setusermatherr(MSVCRT_matherr_func func)
00046 {
00047   MSVCRT_default_matherr_func = func;
00048   TRACE(":new matherr handler %p\n", func);
00049 }
00050 
00051 
00052 #define _FPIEEE_RECORD void
00053 
00054 /*
00055  * @unimplemented
00056  */
00057 int _fpieee_flt(
00058         unsigned long exception_code,
00059         struct _EXCEPTION_POINTERS* ExceptionPointer,
00060         int (*handler)(_FPIEEE_RECORD*)
00061         )
00062 {
00063     FIXME("Unimplemented!\n");
00064     return 0;
00065 }

Generated on Sun May 27 2012 04:36:27 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.