blob: 011acfb4a2fc33f08f83059099d8cf0b481d6be8 (
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
34
35
|
/* 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 GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*/
#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 "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
|