Messages in this thread | | | Date | Wed, 7 Feb 2024 15:10:28 +0000 | From | Mark Brown <> | Subject | Re: [PATCH] arm64/sve: Document that __SVE_VQ_MAX is much larger than needed |
| |
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. [unhandled content-type:application/pgp-signature] | |