arch/arm: Document the clever trick of PRI?32 macros

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-01 17:39:30 +08:00 committed by Petro Karashchenko
parent 9e72fe9fab
commit 12926ee864

View File

@ -29,8 +29,12 @@
* Pre-processor Prototypes
****************************************************************************/
/* The below definition convert __INT32_TYPE__ from 'int'/'signed int' or
* 'long int'/signed long int' to '+2'/'+0 +2' or '+4 +2'/'+0 +4 +2', and
* then make the expression of '__INT32_TYPE__ == int' valid.
*/
#define signed +0
#define unsigned +0
#define int +2
#define long +4