search for: intvars

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

Did you mean: indvars
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 StoreIns...
2020 Feb 19
2
Poor write performance with golang binding
Hi, I scribbled a simple guestfs based program called guestfs-xfer with following synopsis: Usage: guest-xfer [options] [op] [diskimage] op = [ls|cat|write] options: -d, --guestdevice DEV guest device --blocksize BS blocksize [default: 1048576] -o, --offset OFF offset [default: 0] So eg. `cat /dev/urandom | guest-xfer -d /dev/sda
2020 Feb 19
0
Re: Poor write performance with golang binding
On Wed, Feb 19, 2020 at 03:00:11PM +0100, Csaba Henk wrote: > Hi, > > I scribbled a simple guestfs based program called guestfs-xfer with > following synopsis: > > Usage: guest-xfer [options] [op] [diskimage] > > op = [ls|cat|write] > > options: > -d, --guestdevice DEV guest device > --blocksize BS blocksize [default: