From 922aad686552b416539b1d36f17815c7fe92d7b5 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Tue, 13 Jul 2021 14:07:56 +0700 Subject: [PATCH] [K/N] Add exp10 and exp10f to good function list for call checker Clang may replace a call to `pow (10.0, x)` with a call to `exp10(x)` (or `__exp10` on MacOS). We use this function in float parsing logic, so this function should be added to the good function list. --- kotlin-native/runtime/src/mm/cpp/CallsChecker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kotlin-native/runtime/src/mm/cpp/CallsChecker.cpp b/kotlin-native/runtime/src/mm/cpp/CallsChecker.cpp index 3f00630caf4..723ee43cf78 100644 --- a/kotlin-native/runtime/src/mm/cpp/CallsChecker.cpp +++ b/kotlin-native/runtime/src/mm/cpp/CallsChecker.cpp @@ -87,6 +87,10 @@ extern "C" const char* Kotlin_callsCheckerGoodFunctionNames[] = { "expf", "expm1", "expm1f", + "exp10", + "exp10f", + "__exp10", + "__exp10f", "free", "getrusage", "hypot",