MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / LLVM_LIBC_FUNCTION

Function LLVM_LIBC_FUNCTION

system/lib/llvm-libc/src/string/strlen.cpp:20–23  ·  view source on GitHub ↗

TODO: investigate the performance of this function. There might be potential for compiler optimization.

Source from the content-addressed store, hash-verified

18// TODO: investigate the performance of this function.
19// There might be potential for compiler optimization.
20LLVM_LIBC_FUNCTION(size_t, strlen, (const char *src)) {
21 LIBC_CRASH_ON_NULLPTR(src);
22 return internal::string_length(src);
23}
24
25} // namespace LIBC_NAMESPACE_DECL

Callers

nothing calls this directly

Calls 1

string_lengthFunction · 0.85

Tested by

no test coverage detected