Re: [PATCH] arm64/sve: Document that __SVE_VQ_MAX is much larger than needed
From: Mark Brown
Date: Wed Feb 07 2024 - 10:10:42 EST
On Wed, Feb 07, 2024 at 01:39:13PM +0000, Dave Martin wrote:
> How about something along the lines of:
> /*
> * Yes, this is 512 QUADWORDS.
> * To help ensure forward portability, this is much larger than the
> * current maximum value defined by the SVE architecture.
> * While arrays or static allocations can be sized based on this value,
> * watch out! It will waste a surprisingly large amount of memory.
> * Dynamic sizing based on the actual runtime vector length is likely to
> * be preferable for most purposes.
> */
That works for me. The cost of initialising can also add up in
emulation.
Attachment:
signature.asc
Description: PGP signature