lkml.org 
[lkml]   [2024]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2024-05-27 14:53    [W:5.287 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site