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
|
|
|
|
|
2022-06-04 05:24:59 +00:00
|
|
|
#include <stddef.h>
|
2022-06-04 02:39:10 +00:00
|
|
|
#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 05:24:59 +00:00
|
|
|
size_t RabbitizerUtils_CharFill(char *dst, int count, char fillchar);
|
2022-06-04 02:39:10 +00:00
|
|
|
|
2022-06-04 00:19:58 +00:00
|
|
|
#endif
|