naev
0.11.5
src
debug_fpu.c
Go to the documentation of this file.
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
14
#if HAVE_FENV_H && DEBUGGING
15
/* This module uses GNU extensions to enable FPU exceptions. */
16
#define _GNU_SOURCE
17
#include <fenv.h>
18
#endif
/* HAVE_FENV_H && DEBUGGING */
21
#include "debug.h"
22
26
void
debug_enableFPUExcept
(
void
)
27
{
28
#if HAVE_FEENABLEEXCEPT && DEBUGGING
29
feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
30
#endif
/* HAVE_FEENABLEEXCEPT && DEBUGGING */
31
}
32
36
void
debug_disableFPUExcept
(
void
)
37
{
38
#if HAVE_FEENABLEEXCEPT && DEBUGGING
39
fedisableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
40
#endif
/* HAVE_FEENABLEEXCEPT && DEBUGGING */
41
}
debug_disableFPUExcept
void debug_disableFPUExcept(void)
Disables FPU exceptions.
Definition
debug_fpu.c:36
debug_enableFPUExcept
void debug_enableFPUExcept(void)
Enables FPU exceptions. Artificially limited to Linux until link issues are figured out.
Definition
debug_fpu.c:26
Generated by
1.12.0