Diff of /src/ltfat.h [ff23f8] .. [586fe9]  Maximize  Restore

Switch to unified view

a/src/ltfat.h b/src/ltfat.h
...
...
12
12
13
#ifndef PI
13
#ifndef PI
14
#define PI 3.1415926535897932384626433832795
14
#define PI 3.1415926535897932384626433832795
15
#endif
15
#endif
16
16
17
/*
17
// SAFE SIGNED AND UNSIGNED INTEGERS
18
SAFE SIGNED AND UNSIGNED INTEGERS
19
Currently not used anywhere.
20
*/
18
typedef size_t    ltSize;
21
typedef size_t    ltSize;
19
typedef size_t    ltIndex;
22
typedef size_t    ltIndex;
20
typedef ptrdiff_t ltInt;
23
typedef ptrdiff_t ltInt;
21
24
22
#define LTFAT_MAKENAME(name,type,comp) name ## _ ## comp ## type
25
#define LTFAT_MAKENAME(name,type,comp) name ## _ ## comp ## type
...
...
31
extern "C"
34
extern "C"
32
{
35
{
33
#endif
36
#endif
34
37
35
38
36
/* Handle Windows DLL files, not used */
39
/* Handle Windows DLL files */
37
 /* defined by Makefile when compiling LTFAT */
40
/* defined by Makefile when compiling LTFAT */
38
#if defined(DLL_EXPORT_SYMBOLS) && (defined(_WIN32) || defined(__WIN32__))
41
#if defined(DLL_EXPORT_SYMBOLS) && (defined(_WIN32) || defined(__WIN32__))
39
#  define LTFAT_EXTERN extern __declspec(dllexport)
42
#  define LTFAT_EXTERN extern __declspec(dllexport)
40
#else
43
#else
41
#  define LTFAT_EXTERN
44
#  define LTFAT_EXTERN
42
#endif
45
#endif
43
46
44
47
45
/* -------- Define the single precision routines ----- */
48
/* -------- Create the single precision routines headers ----- */
46
49
47
#ifndef LTFAT_DOUBLE
50
#ifndef LTFAT_DOUBLE
48
#ifndef LTFAT_SINGLE
51
#ifndef LTFAT_SINGLE
49
#      define LTFAT_SINGLE_WASNOTDEFINED
52
#      define LTFAT_SINGLE_WASNOTDEFINED
50
#      define LTFAT_SINGLE
53
#      define LTFAT_SINGLE
...
...
66
#      undef LTFAT_SINGLE_WASNOTDEFINED
69
#      undef LTFAT_SINGLE_WASNOTDEFINED
67
#   endif
70
#   endif
68
#endif
71
#endif
69
72
70
73
71
/* -------- Define the double precision routines ----- */
74
/* -------- Create the single precision routines headers ----- */
72
#ifndef LTFAT_SINGLE
75
#ifndef LTFAT_SINGLE
73
#ifndef LTFAT_DOUBLE
76
#ifndef LTFAT_DOUBLE
74
#   define LTFAT_DOUBLE_WASNOTDEFINED
77
#   define LTFAT_DOUBLE_WASNOTDEFINED
75
#   define LTFAT_DOUBLE
78
#   define LTFAT_DOUBLE
76
#endif
79
#endif
...
...
90
#      undef LTFAT_DOUBLE
93
#      undef LTFAT_DOUBLE
91
#      undef LTFAT_DOUBLE_WASNOTDEFINED
94
#      undef LTFAT_DOUBLE_WASNOTDEFINED
92
#   endif
95
#   endif
93
#endif
96
#endif
94
97
98
99
// Undef all
95
#undef LTFAT_COMPLEX
100
#undef LTFAT_COMPLEX
96
#undef LTFAT_REAL
101
#undef LTFAT_REAL
97
#undef LTFAT_TYPE
102
#undef LTFAT_TYPE
98
#undef LTFAT_NAME
103
#undef LTFAT_NAME
99
#undef LTFAT_NAME_REAL
104
#undef LTFAT_NAME_REAL

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks