true_math.h
1/***************************************************************************
2 *
3 * Copyright (C) 2024 by Willem van Straten
4 * Licensed under the Academic Free License version 2.1
5 *
6 ***************************************************************************/
7
8#ifndef __epsic_src_util_signbit_h
9#define __epsic_src_util_signbit_h
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16int true_signbit_float (float x);
17int true_signbit_double (double x);
18int true_signbit_long_double (long double x);
19
21int true_finite_float (float x);
22int true_finite_double (double x);
23int true_finite_long_double (long double x);
24
25#ifdef __cplusplus
26
27} // extern "C"
28
29// namespace for C++ wrappers of C functions
30namespace true_math
31{
33 inline int signbit (float x) { return true_signbit_float(x); }
34 inline int signbit (double x) { return true_signbit_double(x); }
35 inline int signbit (long double x) { return true_signbit_long_double(x); }
36
38 inline int finite (float x) { return true_finite_float(x); }
39 inline int finite (double x) { return true_finite_double(x); }
40 inline int finite (long double x) { return true_finite_long_double(x); }
41}
42
43#endif
44
45#endif // __epsic_src_util_signbit_h
46

Generated using doxygen 1.14.0