GNU macro processor - Macros for doing arithmetic Go to the first , previous , next , last section, table of contents . As convenient shorthands, there are builtins for simple increment and decrement operations. The builtin macros incr and decr are recognized only when given arguments.
Expressions can contain the following operators, listed in order of decreasing precedence.
Logical or All operators, except exponentiation, are left associative. Numbers without special prefix are given decimal. Lower and upper case letters can be used interchangeably in numbers prefixes and as number digits. Calculations are done in at lease 32 bit, but m4 will use wider integers if available. Parentheses may be used to group subexpressions whenever needed.