forked from gap-system/gap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macfloat.h
50 lines (41 loc) · 1.29 KB
/
macfloat.h
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
/****************************************************************************
**
** This file is part of GAP, a system for computational discrete algebra.
**
** Copyright of GAP belongs to its developers, whose names are too numerous
** to list here. Please refer to the COPYRIGHT file for details.
**
** SPDX-License-Identifier: GPL-2.0-or-later
**
** This file declares the functions for the macfloat package
*/
#ifndef GAP_MACFLOAT_H
#define GAP_MACFLOAT_H
#include "objects.h"
#ifdef VERY_LONG_DOUBLES
typedef long double /* __float128 */ Double;
#define PRINTFDIGITS 20
#define PRINTFFORMAT "Lg"
#define STRTOD strtold
#define MATH(name) name##l
#else
typedef double Double;
#define PRINTFDIGITS 16
#define PRINTFFORMAT "g"
#define STRTOD strtod
#define MATH(name) name
#endif
Double VAL_MACFLOAT(Obj obj);
void SET_VAL_MACFLOAT(Obj obj, Double val);
BOOL IS_MACFLOAT(Obj obj);
Obj NEW_MACFLOAT(Double val);
/****************************************************************************
**
*F * * * * * * * * * * * * * initialize module * * * * * * * * * * * * * * *
*/
/****************************************************************************
**
*F InitInfoMacfloat() . . . . . . . . . . . . . . . table of init functions
*/
StructInitInfo * InitInfoMacfloat(void);
#endif // GAP_MACFLOAT_H