tilepro: fix missing ARRAY_SIZE macro

gcc/ChangeLog:

	* config/tilepro/gen-mul-tables.cc (ARRAY_SIZE): Add new macro.
This commit is contained in:
Martin Liska 2022-05-23 13:54:53 +02:00
parent 0236ea984c
commit 63798f67dc
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ typedef long long MUL_TYPE;
#define MIN(x, y) ((x) <= (y) ? (x) : (y))
#define MAX(x, y) ((x) >= (y) ? (x) : (y))
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
/* For this program a unary op is one which has only one nonconstant
operand. So shift left by 5 is considered unary. */
typedef MUL_TYPE (*unary_op_func) (MUL_TYPE);