3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 /* Author: G. Jungman */
23 #include <gsl/gsl_machine.h>
24 #include <gsl/gsl_precision.h>
26 const double gsl_prec_eps[_GSL_PREC_T_NUM] = {
32 const double gsl_prec_sqrt_eps[_GSL_PREC_T_NUM] = {
38 const double gsl_prec_root3_eps[_GSL_PREC_T_NUM] = {
39 GSL_ROOT3_DBL_EPSILON,
40 GSL_ROOT3_FLT_EPSILON,
41 GSL_ROOT3_SFLT_EPSILON
44 const double gsl_prec_root4_eps[_GSL_PREC_T_NUM] = {
45 GSL_ROOT4_DBL_EPSILON,
46 GSL_ROOT4_FLT_EPSILON,
47 GSL_ROOT4_SFLT_EPSILON
50 const double gsl_prec_root5_eps[_GSL_PREC_T_NUM] = {
51 GSL_ROOT5_DBL_EPSILON,
52 GSL_ROOT5_FLT_EPSILON,
53 GSL_ROOT5_SFLT_EPSILON
56 const double gsl_prec_root6_eps[_GSL_PREC_T_NUM] = {
57 GSL_ROOT6_DBL_EPSILON,
58 GSL_ROOT6_FLT_EPSILON,
59 GSL_ROOT6_SFLT_EPSILON
62 typedef unsigned int gsl_mode_t;
64 #ifndef HIDE_INLINE_STATIC
65 /* We need this somewhere, in case the inline is ignored.
68 unsigned int GSL_MODE_PREC(gsl_mode_t mt);
71 GSL_MODE_PREC(gsl_mode_t mt)
73 return (mt & (unsigned int)7);