summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/instructions.h
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-10-18 07:03:37 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-10-24 11:21:04 -0400
commitc6a1beb18fa5c556c3889f3a5ebdffe51981ad85 (patch)
tree2f021104452840ec2f4f68b064924efd0b5e7751 /src/mesa/pipe/llvm/instructions.h
parent1c955171c84f5d062f5f0be983de636a1817c6f7 (diff)
Implement frc and floor
Diffstat (limited to 'src/mesa/pipe/llvm/instructions.h')
-rw-r--r--src/mesa/pipe/llvm/instructions.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/pipe/llvm/instructions.h b/src/mesa/pipe/llvm/instructions.h
index de33b79e37..17165ac9e7 100644
--- a/src/mesa/pipe/llvm/instructions.h
+++ b/src/mesa/pipe/llvm/instructions.h
@@ -20,6 +20,8 @@ public:
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 *madd(llvm::Value *in1, llvm::Value *in2,
llvm::Value *in2);
@@ -31,8 +33,9 @@ public:
private:
const char *name(const char *prefix);
- llvm::Value *callFSqrt(llvm::Value *val);
llvm::Value *callFAbs(llvm::Value *val);
+ llvm::Value *callFloor(llvm::Value *val);
+ llvm::Value *callFSqrt(llvm::Value *val);
llvm::Value *callPow(llvm::Value *val1, llvm::Value *val2);
llvm::Value *vectorFromVals(llvm::Value *x, llvm::Value *y,
@@ -48,6 +51,7 @@ private:
llvm::Function *m_llvmFSqrt;
llvm::Function *m_llvmFAbs;
llvm::Function *m_llvmPow;
+ llvm::Function *m_llvmFloor;
};
#endif