aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/precision.h
blob: 4bca3541730bcd1a7f2403f8c07d8a851e43aa09 (plain) (blame)
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
/*
 * Header that allows conditional compilation into double floating point precisions ot extended double floating point precision
 *
 * CUDA does not support long double so cuda-fractals may fail to compile or have unexpected behavior if linked with code that was compiled with EXTENDED_PRECISION
 */
#pragma once

#ifdef EXTENDED_PRECISION

#define CBASE long double
#define CREAL creall
#define CIMAG cimagl
#define CPOW cpowl
#define CONJ conjl
#define CABS cabsl
#define RABS fabsl
#define CFORMAT "%Lf"

#endif
#ifndef EXTENDED_PRECISION

#define CBASE double
#define CREAL creal
#define CIMAG cimag
#define CPOW cpow
#define CONJ conj
#define CABS cabs
#define RABS fabs
#define CFORMAT "%lf"

#endif