Commit e9fa209b by Antonio Maiorano

Add "fmod" external symbol to LLVM backend

Fixes ReactorUnitTests.FRem failing on Windows x86. Bug: b/173800469 Change-Id: I199d28f9ca532870b92a7da38d42c1cf652829a5 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50708 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent 24350b8d
...@@ -452,6 +452,7 @@ class ExternalSymbolGenerator : public llvm::orc::JITDylib::DefinitionGenerator ...@@ -452,6 +452,7 @@ class ExternalSymbolGenerator : public llvm::orc::JITDylib::DefinitionGenerator
functions.try_emplace("exp2f", reinterpret_cast<void *>(exp2f)); functions.try_emplace("exp2f", reinterpret_cast<void *>(exp2f));
functions.try_emplace("log2f", reinterpret_cast<void *>(log2f)); functions.try_emplace("log2f", reinterpret_cast<void *>(log2f));
functions.try_emplace("fmod", reinterpret_cast<void *>(static_cast<double (*)(double, double)>(fmod)));
functions.try_emplace("sin", reinterpret_cast<void *>(static_cast<double (*)(double)>(sin))); functions.try_emplace("sin", reinterpret_cast<void *>(static_cast<double (*)(double)>(sin)));
functions.try_emplace("cos", reinterpret_cast<void *>(static_cast<double (*)(double)>(cos))); functions.try_emplace("cos", reinterpret_cast<void *>(static_cast<double (*)(double)>(cos)));
functions.try_emplace("asin", reinterpret_cast<void *>(static_cast<double (*)(double)>(asin))); functions.try_emplace("asin", reinterpret_cast<void *>(static_cast<double (*)(double)>(asin)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment