On 25/06/2024 21:07, Andrew Cooper wrote:
>
>
> ... which is better optimised for scalar values, rather than using the
> arbitrary-sized bitmap helpers.
>
> For ARM32:
>
> add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-16 (-16)
> Function old new delta
> vgic_set_irqs_pending 284 268 -16
>
> including removing calls to _find_{first,next}_bit_le(), and two stack-spilled
> words too.
>
> For ARM64:
>
> add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-40 (-40)
> Function old new delta
> vgic_set_irqs_pending 268 228 -40
>
> including removing three calls to find_next_bit().
>
> Signed-off-by: Andrew Cooper <[email protected]>
Reviewed-by: Michal Orzel <[email protected]>
~Michal
- Re: [PATCH 1/6] x86/vmx: Rewrite vmx_sync_pir_to_ir... Andrew Cooper
- Re: [PATCH 1/6] x86/vmx: Rewrite vmx_sync_pir_t... Andrew Cooper
- Re: [PATCH 1/6] x86/vmx: Rewrite vmx_sync_p... Jan Beulich
- [PATCH for-4.19? 3/6] xen/macros: Introduce BUILD_ERROR() Andrew Cooper
- [PATCH 4/6] xen/bitops: Introduce for_each_set_bit() Andrew Cooper
- [PATCH 5/6] ARM/vgic: Use for_each_set_bit() in vgic_set_irq... Andrew Cooper
- Re: [PATCH 5/6] ARM/vgic: Use for_each_set_bit() in vgi... Michal Orzel
- [PATCH 6/6] x86/xstate: Switch back to for_each_set_bit() Andrew Cooper
- [PATCH 2/6] xen/bitops: Rename for_each_set_bit() to bitmap_... Andrew Cooper
