mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add some sqrt implementations, to be used by the demo.
Swift SVN r1553
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user