fix: integer suffix macro definition

The current implementation of macro L/LL/UL/ULL concatenates the input
with "L"/"LL"/"UL"/"ULL" respectively.
In the case where a macro is passed to L/LL/UL/ULL as input,
the input macro name is concatenated with, rather than expanding
the input macro and then concatenating it.
The implementation of L/LL/UL/ULL is modified to two level macro,
so as to concatenate to the expansion of a macro argument.

Change 5b33ad174a "Unify type of "cpu_idx" across PSCI module."
has modified the implementation of U() to two level macros without
changing the implementation of other macros.

Change-Id: Ie93d67dff5ce96223a3faf6c98b98fcda530fc34
Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
This commit is contained in:
Akshay Belsare 2023-06-08 10:39:08 +05:30 committed by Manish Pandey
parent 92a44d5587
commit 1a56ed4b35

View file

@ -27,10 +27,14 @@
#else
# define U_(_x) (_x##U)
# define U(_x) U_(_x)
# define UL(_x) (_x##UL)
# define ULL(_x) (_x##ULL)
# define L(_x) (_x##L)
# define LL(_x) (_x##LL)
# define UL_(_x) (_x##UL)
# define UL(_x) UL_(_x)
# define ULL_(_x) (_x##ULL)
# define ULL(_x) ULL_(_x)
# define L_(_x) (_x##L)
# define L(_x) L_(_x)
# define LL_(_x) (_x##LL)
# define LL(_x) LL_(_x)
#endif