HomeFreeBSD

amd64: align memset buffers to 16 bytes before using rep stos

Description

amd64: align memset buffers to 16 bytes before using rep stos

Both Intel manual and Agner Fog's docs suggest aligning to 16.

See the review for benchmark results.

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17661

Details