KT24-1110_65E-HA-651B/include_lib/system/generic/index.h
2024-11-10 18:44:17 +08:00

23 lines
309 B
C

#ifndef INDEX_H
#define INDEX_H
#include "typedef.h"
#define TABLE(t) t, ARRAY_SIZE(t)
int index_of_table8(u8 value, const u8 *table, int table_size);
int index_of_table16(u16 value, const u16 *table, int table_size);
int index_of_table32(u32 value, const u32 *table, int table_size);
#endif