projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5587944
)
llvmpipe: use 1ULL to be ready for 64-bit arithmetic someday
author
Brian Paul
<brianp@vmware.com>
Tue, 15 Dec 2009 14:58:37 +0000
(07:58 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 15 Dec 2009 14:58:37 +0000
(07:58 -0700)
src/gallium/drivers/llvmpipe/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_arit.c
b/src/gallium/drivers/llvmpipe/lp_bld_arit.c
index
e7eb5f8
..
f826093
100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
@@
-591,7
+591,7
@@
lp_build_abs(struct lp_build_context *bld,
if(type.floating) {
/* Mask out the sign bit */
LLVMTypeRef int_vec_type = lp_build_int_vec_type(type);
- unsigned long
absMask = ~(1
<< (type.width - 1));
+ unsigned long
long absMask = ~(1ULL
<< (type.width - 1));
LLVMValueRef mask = lp_build_int_const_scalar(type, ((unsigned long long) absMask));
a = LLVMBuildBitCast(bld->builder, a, int_vec_type, "");
a = LLVMBuildAnd(bld->builder, a, mask, "");