add some sqrt implementations, to be used by the demo.

Swift SVN r1553
This commit is contained in:
Chris Lattner
2012-04-22 23:51:40 +00:00
parent ed4bf70eb7
commit cd8f3e257d

View File

@@ -42,6 +42,7 @@
#include "llvm/LLVMContext.h" #include "llvm/LLVMContext.h"
#include "llvm/Module.h" #include "llvm/Module.h"
#include <cmath>
#include <histedit.h> #include <histedit.h>
#include <dlfcn.h> #include <dlfcn.h>
@@ -367,3 +368,8 @@ extern "C" void _TSs4exitFT8exitCodeNSs5Int64_T_(int64_t l) {
extern "C" void _TSs5abortFT_T_() { extern "C" void _TSs5abortFT_T_() {
abort(); abort();
} }
extern "C" double _TSs4sqrtFT1aNSs6Double_S_(double X) { return sqrt(X); }
extern "C" float _TSs4sqrtFT1aNSs5Float_S_(float X) {
return sqrtf(X);
}