aarch64: Optimize __libc_mtag_tag_region
commit23fd760add29042fd6f8fead0f6a2f32631d41aa
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 9 Feb 2021 17:56:02 +0000 (9 17:56 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 26 Mar 2021 11:03:06 +0000 (26 11:03 +0000)
treea7b15b0d3d507153ba3f14ab14c4ca3d7d5438fd
parent383bc2402879080ed65b7f68789f5ebaf994f896
aarch64: Optimize __libc_mtag_tag_region

This is a target hook for memory tagging, the original was a naive
implementation. The optimized version relies on "dc gva" to tag 64
bytes at a time for large allocations and optimizes small cases without
adding too many branches. This was not benchmarked on real cpu, but
expected to be faster than the naive implementation.
sysdeps/aarch64/__mtag_tag_region.S