ReactOS  0.4.13-dev-99-g7e18b6d
matherr.c
Go to the documentation of this file.
1 #include <precomp.h>
2 
3 #define __USE_ISOC9X 1
4 #define __USE_ISOC99 1
5 #include <math.h>
6 
7 #ifdef HAVE_IEEEFP_H
8 #include <ieeefp.h>
9 #endif
10 
11 #ifndef HAVE_FINITE
12 #ifndef finite /* Could be a macro */
13 #ifdef isfinite
14 #define finite(x) isfinite(x)
15 #else
16 #define finite(x) (!isnan(x)) /* At least catch some cases */
17 #endif
18 #endif
19 #endif
20 
21 #ifndef signbit
22 #define signbit(x) 0
23 #endif
24 
25 typedef int (*MSVCRT_matherr_func)(struct _exception *);
26 
28 
29 int CDECL _matherr(struct _exception *e)
30 {
31  if (e)
32  TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2,
33  e->retval);
34  else
35  TRACE("(null)\n");
38  ERR(":Unhandled math error!\n");
39  return 0;
40 }
41 
42 /*********************************************************************
43  * __setusermatherr (MSVCRT.@)
44  */
46 {
48  TRACE(":new matherr handler %p\n", func);
49 }
50 
51 
52 #define _FPIEEE_RECORD void
53 
54 /*
55  * @unimplemented
56  */
58  unsigned long exception_code,
59  struct _EXCEPTION_POINTERS* ExceptionPointer,
60  int (*handler)(_FPIEEE_RECORD*)
61  )
62 {
63  FIXME("Unimplemented!\n");
64  return 0;
65 }
int _fpieee_flt(unsigned long exception_code, struct _EXCEPTION_POINTERS *ExceptionPointer, int(*handler)(_FPIEEE_RECORD *))
Definition: matherr.c:57
GLenum func
Definition: glext.h:6028
char * name
Definition: wpp.c:36
int(* MSVCRT_matherr_func)(struct _exception *)
Definition: matherr.c:25
void CDECL __setusermatherr(MSVCRT_matherr_func func)
Definition: matherr.c:45
int CDECL _matherr(struct _exception *e)
Definition: matherr.c:29
#define e
Definition: ke_i.h:82
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define CDECL
Definition: compat.h:21
static MSVCRT_matherr_func MSVCRT_default_matherr_func
Definition: matherr.c:27
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31