naev
0.12.5
src
debug_fpu.c
Go to the documentation of this file.
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
12
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 */
20
21
#include "debug.h"
22
27
void
debug_enableFPUExcept
(
void
)
28
{
29
#if HAVE_FEENABLEEXCEPT && DEBUGGING
30
feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
31
#endif
/* HAVE_FEENABLEEXCEPT && DEBUGGING */
32
}
33
37
void
debug_disableFPUExcept
(
void
)
38
{
39
#if HAVE_FEENABLEEXCEPT && DEBUGGING
40
fedisableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
41
#endif
/* HAVE_FEENABLEEXCEPT && DEBUGGING */
42
}
debug_disableFPUExcept
void debug_disableFPUExcept(void)
Disables FPU exceptions.
Definition
debug_fpu.c:37
debug_enableFPUExcept
void debug_enableFPUExcept(void)
Enables FPU exceptions. Artificially limited to Linux until link issues are figured out.
Definition
debug_fpu.c:27
Generated by
1.14.0