MARLEY (Model of Argon Reaction Low Energy Yields)
v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
include
builtin
fftpack4
fftpack4_precision.h
1
/*
2
* Copyright (c) 2005, Andrew Fernandes (
[email protected]
);
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* - Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* - Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* - Neither the name of the North Carolina State University nor the
17
* names of its contributors may be used to endorse or promote products
18
* derived from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
* POSSIBILITY OF SUCH DAMAGE.
32
*
33
*/
34
#ifndef PRECISION_H_INCLUDED
35
#define PRECISION_H_INCLUDED
36
37
#if !defined(SINGLE_PRECISION) && !defined(DOUBLE_PRECISION) && !defined(EXTENDED_PRECISION)
38
# define DOUBLE_PRECISION
39
#endif
40
41
/* note that the 'integer_t' type must be signed, not unsigned */
42
43
#if defined(EXTENDED_PRECISION)
44
45
typedef
int
integer_t;
46
typedef
long
double
real_t;
47
#define REAL_CONSTANT(x) x##l
48
49
#elif defined(DOUBLE_PRECISION)
50
51
typedef
int
integer_t;
52
typedef
double
real_t;
53
#define REAL_CONSTANT(x) x
54
55
#elif defined(SINGLE_PRECISION)
56
57
typedef
int
integer_t;
58
typedef
float
real_t;
59
#define REAL_CONSTANT(x) x##f
60
61
#endif
/* ! *_PRECISION */
62
63
#endif
/* ! PRECISION_H_INCLUDED */
Generated by
1.13.2