/usr/include/libgoffice-0.8/goffice/math/go-math.h is in libgoffice-0.8-dev 0.8.17-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | #ifndef __GO_MATH_H
#define __GO_MATH_H
#include <math.h>
#include <goffice/goffice-features.h>
#include <glib.h>
#include <goffice/goffice.h>
G_BEGIN_DECLS
/* ------------------------------------------------------------------------- */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
void _go_math_init (void);
void go_continued_fraction (double val, int max_denom, int *res_num, int *res_denom);
void go_stern_brocot (double val, int max_denom, int *res_num, int *res_denom);
/* ------------------------------------------------------------------------- */
GO_VAR_DECL double go_nan;
GO_VAR_DECL double go_pinf;
GO_VAR_DECL double go_ninf;
double go_add_epsilon (double x);
double go_sub_epsilon (double x);
double go_fake_floor (double x);
double go_fake_ceil (double x);
double go_fake_round (double x);
double go_fake_trunc (double x);
double go_rint (double x);
int go_finite (double x);
double go_pow2 (int n);
double go_pow10 (int n);
double go_strtod (const char *s, char **end);
double go_ascii_strtod (const char *s, char **end);
/*
* We provide working versions of these functions for doubles.
*/
#ifdef GOFFICE_SUPPLIED_ASINH
double asinh (double x);
#endif
#ifdef GOFFICE_SUPPLIED_ACOSH
double acosh (double x);
#endif
#ifdef GOFFICE_SUPPLIED_ATANH
double atanh (double x);
#endif
#ifdef GOFFICE_SUPPLIED_LOG1P
double log1p (double x);
#endif
#ifdef GOFFICE_SUPPLIED_EXPM1
double expm1 (double x);
#endif
/* ------------------------------------------------------------------------- */
#ifdef GOFFICE_WITH_LONG_DOUBLE
GO_VAR_DECL long double go_nanl;
GO_VAR_DECL long double go_pinfl;
GO_VAR_DECL long double go_ninfl;
long double go_add_epsilonl (long double x);
long double go_sub_epsilonl (long double x);
long double go_fake_floorl (long double x);
long double go_fake_ceill (long double x);
long double go_fake_roundl (long double x);
long double go_fake_truncl (long double x);
int go_finitel (long double x);
long double go_pow2l (int n);
long double go_pow10l (int n);
long double go_strtold (const char *s, char **end);
long double go_ascii_strtold (const char *s, char **end);
/*
* We provide working versions of these functions for long doubles.
*/
#ifdef GOFFICE_SUPPLIED_LDEXPL
long double ldexpl (long double x, int exp);
#endif
#ifdef GOFFICE_SUPPLIED_FREXPL
long double frexpl (long double x, int *exp);
#endif
#ifdef GOFFICE_SUPPLIED_STRTOLD
long double strtold (const char *, char **);
#endif
#ifdef GOFFICE_SUPPLIED_MODFL
long double modfl (long double x, long double *iptr);
#endif
#endif
#ifdef _MSC_VER
#define isnan _isnan
#endif
/* ------------------------------------------------------------------------- */
G_END_DECLS
#endif /* __GO_MATH_H */
|