浏览代码

gallivm: add 64-bit const int creator.

Acked-by: Roland Scheidegger <sroland@vmware.com>
master
Dave Airlie 7 年前
父节点
当前提交
84ba008774
共有 1 个文件被更改,包括 5 次插入 和 0 次删除
  1. 5
    0
      src/gallium/auxiliary/gallivm/lp_bld_const.h

+ 5
- 0
src/gallium/auxiliary/gallivm/lp_bld_const.h 查看文件

@@ -126,6 +126,11 @@ lp_build_const_int32(struct gallivm_state *gallivm, int i)
return LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), i, 0);
}

static inline LLVMValueRef
lp_build_const_int64(struct gallivm_state *gallivm, int i)
{
return LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), i, 0);
}

static inline LLVMValueRef
lp_build_const_float(struct gallivm_state *gallivm, float x)

正在加载...
取消
保存