summaryrefslogtreecommitdiffstats
path: root/memtestEDK/Memtest/SingleComponents/environment.h
blob: 854609991a2678649198ecf0249f5887e4c351a3 (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

#include "stdin.h"


#if __linux__   //  or #if __GNUC__
    #if __x86_64__ || __ppc64__
        #define ENVIRONMENT64
    #else
        #define ENVIRONMENT32
    #endif
#else
    #if _WIN32
        #define ENVIRONMENT32
    #else
        #define ENVIRONMENT64
    #endif
#endif // __linux__

#ifdef ENVIRONMENT64
    #define MAX_BLOCK_SIZE uint64_t
#else
    #define MAX_BLOCK_SIZE uint32_t
#endif // ENVIRONMENT64