Mercurial > projects > ldc
diff runtime/import/ldc/intrinsics.di @ 741:4ac97ec7c18e
Applied easy part from wilsonk's x86-64 patch in #107
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 30 Oct 2008 11:08:34 +0100 |
parents | d8a1481eaa0c |
children | 7a0238db1962 |
line wrap: on
line diff
--- a/runtime/import/ldc/intrinsics.di Thu Oct 30 10:17:05 2008 +0100 +++ b/runtime/import/ldc/intrinsics.di Thu Oct 30 11:08:34 2008 +0100 @@ -112,6 +112,12 @@ real llvm_sqrt_f80(real val); } +version(X86_64) +{ +pragma(intrinsic, "llvm.sqrt.f80") + real llvm_sqrt_f80(real val); +} + // The 'llvm.sin.*' intrinsics return the sine of the operand. @@ -125,6 +131,12 @@ real llvm_sin_f80(real val); } +version(X86_64) +{ +pragma(intrinsic, "llvm.sin.f80") + real llvm_sin_f80(real val); +} + // The 'llvm.cos.*' intrinsics return the cosine of the operand. @@ -138,6 +150,12 @@ real llvm_cos_f80(real val); } +version(X86_64) +{ +pragma(intrinsic, "llvm.cos.f80") + real llvm_cos_f80(real val); +} + // The 'llvm.powi.*' intrinsics return the first operand raised to the specified (positive or negative) power. The order of evaluation of multiplications is not defined. When a vector of floating point type is used, the second argument remains a scalar integer value. @@ -152,6 +170,11 @@ real llvm_powi_f80(real val, int power); } +version(X86_64) +{ +pragma(intrinsic, "llvm.powi.f80") + real llvm_powi_f80(real val, int power); +} // The 'llvm.pow.*' intrinsics return the first operand raised to the specified (positive or negative) power. @@ -166,7 +189,11 @@ real llvm_pow_f80(real val, real power); } - +version(X86_64) +{ +pragma(intrinsic, "llvm.pow.f80") + real llvm_pow_f80(real val, real power); +} //