blob: c17a4a918499808b629456708965f4843c231843 (
plain)
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
32
33
|
/* This code is part of the tng compression routines.
*
* Written by Daniel Spangberg
* Copyright (c) 2010, 2013, The GROMACS development team.
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Revised BSD License.
*/
#ifndef MY64BIT_H
#define MY64BIT_H
#ifdef USE_STD_INTTYPES_H
#include <inttypes.h>
typedef int64_t my_int64_t;
typedef uint64_t my_uint64_t;
#define HAVE64BIT
#else /* USE_STD_INTTYPES */
/* The USE_WINDOWS symbol should be automatically defined in tng_compress.h */
#include "../compression/tng_compress.h"
#ifdef USE_WINDOWS
typedef __int64 my_int64_t;
typedef unsigned __int64 my_uint64_t;
#define HAVE64BIT
#else /* USE_WINDOWS */
/* Fall back to assume that we have unsigned long long */
typedef unsigned long long my_uint64_t;
#define HAVE64BIT
#endif /* USE_WINDOWS */
#endif /* USE_STD_INTTYPES */
#endif
|