search for: intvar

Displaying 3 results from an estimated 3 matches for "intvar".

Did you mean: indvar
2010 Mar 26
1
[LLVMdev] Using GetElementPtr to traverse large arrays
...is question was probably asked million times before, but I wasted few hours and didn't find the solution.. What is the best way to traverse a large array (say size of million) with GetElementPtr The problem with the following code, is that it forces you to create million constant index values: intVars = new AllocaInst(Type::getInt32Ty(ctx), allocaSize, "intVars", someBlock); for(int i = 0; i < 1000000; i++) { Value *idx = ConstantInt::get(Type::getInt32Ty(ctx), i); GetElementPtrInst *gep = GetElementPtrInst::Create(intVars, idx, "ElemPtr", someBlock); new StoreIn...
2020 Feb 19
2
Poor write performance with golang binding
...(ops, on) } fmt.Fprintf(flag.CommandLine.Output(), usage, filepath.Base(os.Args[0]), strings.Join(ops, "|")) flag.PrintDefaults() } flag.StringVar(&devname, "guestdevice", "", "guestfs device name") flag.IntVar(&bs, "blocksize", 1<<20, "blocksize") flag.Int64Var(&offset, "offset", 0, "offset") flag.Parse() var opname string var disk string switch flag.NArg() { case 2: opname = flag.Arg(0) disk = flag.Arg(1)...
2020 Feb 19
0
Re: Poor write performance with golang binding
...fmt.Fprintf(flag.CommandLine.Output(), usage, > filepath.Base(os.Args[0]), strings.Join(ops, "|")) > flag.PrintDefaults() > } > flag.StringVar(&devname, "guestdevice", "", "guestfs device name") > flag.IntVar(&bs, "blocksize", 1<<20, "blocksize") > flag.Int64Var(&offset, "offset", 0, "offset") > flag.Parse() > > var opname string > var disk string > switch flag.NArg() { > case 2: > opname = fla...