Re: [PATCH 3/3] rseq: optimise for 64bit arches

From: Mathieu Desnoyers
Date: Tue Apr 13 2021 - 11:08:58 EST


----- On Apr 13, 2021, at 11:06 AM, David Laight David.Laight@xxxxxxxxxx wrote:
[...]
>
> Hmmm... too much replication.
> You could do:
> #ifdef CONFIG_64BIT
> #define PTR_TYPE u64
> #define PTR_FLD ptr64
> #else
> #define PTR_TYPE u32
> #define PTR_FLD ptr32
> #endif
>
> Then have one copy of the code and the #undefs.

Good point, agreed.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com