ladybird/Userland/DynamicLoader
Daniel Bertalan fd3e3d5e28 LibC+Kernel: Prevent string functions from calling themselves
Most of the string.h and wchar.h functions are implemented quite naively
at the moment, and GCC's pattern recognition pass might realize what we
are trying to do, and transform them into libcalls. This is usually a
useful optimization, but not when we're implementing the functions
themselves :^)

Relevant discussion from the GCC Bugzilla:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102725

This prevents the infamous recursive `strlen`.

A more proper fix would be writing these functions in assembly. That
would likely give a small performance boost as well ;)
2022-05-12 13:12:37 +02:00
..
CMakeLists.txt LibC+Kernel: Prevent string functions from calling themselves 2022-05-12 13:12:37 +02:00
main.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
misc.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
misc.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00