| 1 | /* |
| 2 | * types.h |
| 3 | * |
| 4 | * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | * See https://llvm.org/LICENSE.txt for license information. |
| 6 | * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | */ |
| 8 | |
| 9 | #ifndef mathtest_types_h |
| 10 | #define mathtest_types_h |
| 11 | |
| 12 | #include <limits.h> |
| 13 | |
| 14 | #if UINT_MAX == 4294967295 |
| 15 | typedef unsigned int uint32; |
| 16 | typedef int int32; |
| 17 | #define I32 "" |
| 18 | #elif ULONG_MAX == 4294967295 |
| 19 | typedef unsigned long uint32; |
| 20 | typedef long int32; |
| 21 | #define I32 "l" |
| 22 | #else |
| 23 | #error Could not find an unsigned 32-bit integer type |
| 24 | #endif |
| 25 | |
| 26 | #endif |
| 27 | |