diff options
author | Brian Paul <[email protected]> | 2009-12-15 07:58:37 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-15 07:58:37 -0700 |
commit | 276b8523e82c36ec2def21d16fdf7f6a32a3bd37 (patch) | |
tree | e9170ea85aed2e2c520fac6e5eba44e25187909c /src/gallium/drivers | |
parent | 55879440d703bf9f5a4040d04a2f2cd024fa07c2 (diff) |
llvmpipe: use 1ULL to be ready for 64-bit arithmetic someday
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_arit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_arit.c b/src/gallium/drivers/llvmpipe/lp_bld_arit.c index e7eb5f833b6..f8260938f5a 100644 --- 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, ""); |