MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / const_uint_big

Method const_uint_big

crates/rustc_codegen_nvvm/src/const_ty.rs:38–43  ·  view source on GitHub ↗
(&self, t: &'ll Type, u: u128)

Source from the content-addressed store, hash-verified

36 }
37
38 fn const_uint_big(&self, t: &'ll Type, u: u128) -> &'ll Value {
39 unsafe {
40 let words = [u as u64, (u >> 64) as u64];
41 llvm::LLVMConstIntOfArbitraryPrecision(t, 2, words.as_ptr())
42 }
43 }
44
45 fn const_bool(&self, val: bool) -> &'ll Value {
46 self.const_uint(self.type_i1(), val as u64)

Callers 3

scalar_to_backendMethod · 0.80
switchMethod · 0.80
range_metadataMethod · 0.80

Calls 1

as_ptrMethod · 0.80

Tested by

no test coverage detected