aboutsummaryrefslogtreecommitdiff
path: root/math/test/rtest/types.h
blob: 53cd557fa4cf448d6d4f49dbd85cf8c514905d47 (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
/*
 * types.h
 *
 * Copyright (c) 2005-2019, Arm Limited.
 * SPDX-License-Identifier: MIT
 */

#ifndef mathtest_types_h
#define mathtest_types_h

#include <limits.h>

#if UINT_MAX == 4294967295
typedef unsigned int uint32;
typedef int int32;
#define I32 ""
#elif ULONG_MAX == 4294967295
typedef unsigned long uint32;
typedef long int32;
#define I32 "l"
#else
#error Could not find an unsigned 32-bit integer type
#endif

#endif