diff options
author | Zack Rusin <[email protected]> | 2007-10-18 07:20:27 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-10-24 11:21:04 -0400 |
commit | 3ae767dd073e8c24fc159cb86f89e61ea7a0e85f (patch) | |
tree | fa27a2d81093510454768c8a85d6b7697f904a92 /src/mesa/pipe/llvm/instructions.h | |
parent | c6a1beb18fa5c556c3889f3a5ebdffe51981ad85 (diff) |
Fix some warnings and implement lg2
Diffstat (limited to 'src/mesa/pipe/llvm/instructions.h')
-rw-r--r-- | src/mesa/pipe/llvm/instructions.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mesa/pipe/llvm/instructions.h b/src/mesa/pipe/llvm/instructions.h index 17165ac9e70..e6ad47ebd28 100644 --- a/src/mesa/pipe/llvm/instructions.h +++ b/src/mesa/pipe/llvm/instructions.h @@ -19,16 +19,17 @@ public: llvm::Value *dp4(llvm::Value *in1, llvm::Value *in2); llvm::Value *dph(llvm::Value *in1, llvm::Value *in2); llvm::Value *dst(llvm::Value *in1, llvm::Value *in2); - llvm::Value *ex2(llvm::Value *in1); - llvm::Value *floor(llvm::Value *in1); - llvm::Value *frc(llvm::Value *in1); - llvm::Value *lit(llvm::Value *in1); + llvm::Value *ex2(llvm::Value *in); + llvm::Value *floor(llvm::Value *in); + llvm::Value *frc(llvm::Value *in); + llvm::Value *lit(llvm::Value *in); + llvm::Value *lg2(llvm::Value *in); llvm::Value *madd(llvm::Value *in1, llvm::Value *in2, llvm::Value *in2); llvm::Value *mul(llvm::Value *in1, llvm::Value *in2); llvm::Value *pow(llvm::Value *in1, llvm::Value *in2); - llvm::Value *rcp(llvm::Value *in1); - llvm::Value *rsq(llvm::Value *in1); + llvm::Value *rcp(llvm::Value *in); + llvm::Value *rsq(llvm::Value *in); llvm::Value *sub(llvm::Value *in1, llvm::Value *in2); private: const char *name(const char *prefix); @@ -36,6 +37,7 @@ private: llvm::Value *callFAbs(llvm::Value *val); llvm::Value *callFloor(llvm::Value *val); llvm::Value *callFSqrt(llvm::Value *val); + llvm::Value *callFLog(llvm::Value *val); llvm::Value *callPow(llvm::Value *val1, llvm::Value *val2); llvm::Value *vectorFromVals(llvm::Value *x, llvm::Value *y, @@ -52,6 +54,7 @@ private: llvm::Function *m_llvmFAbs; llvm::Function *m_llvmPow; llvm::Function *m_llvmFloor; + llvm::Function *m_llvmFlog; }; #endif |