Page MenuHomeFreeBSD

libc/aarch64: Add memset for a 64 byte dc zva
ClosedPublic

Authored by andrew on Jan 19 2026, 12:18 PM.
Tags
None
Referenced Files
F176264582: D54776.id170036.diff
Sat, Oct 17, 12:11 PM
Unknown Object (File)
Fri, Oct 16, 9:07 AM
Unknown Object (File)
Fri, Oct 16, 8:14 AM
Unknown Object (File)
Wed, Oct 14, 10:44 AM
Unknown Object (File)
Tue, Oct 13, 1:01 AM
Unknown Object (File)
Mon, Oct 12, 3:32 PM
Unknown Object (File)
Sun, Oct 11, 4:01 AM
Unknown Object (File)
Mon, Oct 5, 6:42 AM
Subscribers

Details

Summary

On arm64 we can use the "dc zva" instruction to zero memory. The CPU
tells software if the instruction is implemented, and if so the size
and alignment it will use.

When the size is 64-bytes the Arm Optimized Routines implementation of
memset can use dc zva to zero memory, and has a build flag to skip
checking.

Use this flag to build a version of memset that will be used when this
assumption is true.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable