TrenchBoot / landing-zone

An open source implementation of an AMD-V Secure Loader.
GNU General Public License v2.0
23 stars 7 forks source link

Optimise strlen() using __builtin_strlen() #69

Closed andyhhp closed 3 years ago

andyhhp commented 3 years ago

In particular, this now shinks to a single rep scas.

While moving the implementation to string.c, fix the ABI to match the C standard, by using size_t rather than int.

Signed-off-by: Andrew Cooper andrew.cooper3@citrix.com