Explorar el Código

gallivm: add 64-bit const int creator.

Acked-by: Roland Scheidegger <sroland@vmware.com>
master
Dave Airlie hace 6 años
padre
commit
84ba008774
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      src/gallium/auxiliary/gallivm/lp_bld_const.h

+ 5
- 0
src/gallium/auxiliary/gallivm/lp_bld_const.h Ver fichero

@@ -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)

Cargando…
Cancelar
Guardar