ChampSim
openblas_common.h
Go to the documentation of this file.
1 #pragma once
2 #include "openblas/openblas_config.h"
3 
4 #if defined(OPENBLAS_OS_WINNT) || defined(OPENBLAS_OS_CYGWIN_NT) || defined(OPENBLAS_OS_INTERIX)
5 #define OPENBLAS_WINDOWS_ABI
6 #define OPENBLAS_OS_WINDOWS
7 
8 #ifdef DOUBLE
9 #define DOUBLE_DEFINED DOUBLE
10 #undef DOUBLE
11 #endif
12 #endif
13 
14 #ifdef NEEDBUNDERSCORE
15 #define BLASFUNC(FUNC) FUNC##_
16 
17 #else
18 #define BLASFUNC(FUNC) FUNC
19 #endif
20 
21 
22 #ifdef OPENBLAS_QUAD_PRECISION
23 typedef struct {
24  unsigned long x[2];
25 } xdouble;
26 #elif defined OPENBLAS_EXPRECISION
27 #define xdouble long double
28 #else
29 #define xdouble double
30 #endif
31 
32 #if defined(OS_WINNT) && defined(__64BIT__)
33 typedef long long BLASLONG;
34 typedef unsigned long long BLASULONG;
35 #else
36 typedef long BLASLONG;
37 typedef unsigned long BLASULONG;
38 #endif
39 
40 #ifdef OPENBLAS_USE64BITINT
41 typedef BLASLONG blasint;
42 #else
43 typedef int blasint;
44 #endif
45 
46 #if defined(XDOUBLE) || defined(DOUBLE)
47 #define FLOATRET FLOAT
48 #else
49 #ifdef NEED_F2CCONV
50 #define FLOATRET double
51 #else
52 #define FLOATRET float
53 #endif
54 #endif
55 
56 
57 /* Inclusion of a standard header file is needed for definition of __STDC_*
58  predefined macros with some compilers (e.g. GCC 4.7 on Linux). This occurs
59  as a side effect of including either <features.h> or <stdc-predef.h>. */
60 #include <stdio.h>
int blasint
Definition: openblas_common.h:43
long BLASLONG
Definition: openblas_common.h:36
unsigned long BLASULONG
Definition: openblas_common.h:37
#define xdouble
Definition: openblas_common.h:29