rabbitizer/include/common/Utils.h

17 lines
303 B
C
Raw Normal View History

2022-06-04 00:19:58 +00:00
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
/* SPDX-License-Identifier: MIT */
2022-06-04 02:39:10 +00:00
#ifndef RABBITIZER_UTILS_H
#define RABBITIZER_UTILS_H
#include <stdint.h>
2022-06-04 00:19:58 +00:00
#define ARRAY_COUNT(arr) (sizeof(arr) / sizeof(arr[0]))
2022-06-04 02:39:10 +00:00
int32_t RabbitizerUtils_From2Complement(uint32_t number, int bits);
2022-06-04 00:19:58 +00:00
#endif