search for: pbuff

Displaying 5 results from an estimated 5 matches for "pbuff".

Did you mean: buff
2005 Apr 11
2
[LLVMdev] JIT and array pointers
..._module"); Function *f = m->getOrInsertFunction ("test_function", Type::VoidTy, 0); BasicBlock *b = new BasicBlock ("entry_block", f); // Here is the problem. // I need to get the buff pointer into variable, which I can // pass to GetElementPtrInst // Value *pbuff = ?? // -> %pbuff = external global [4096 x uint] Value *ptr = new GetElementPtrInst (pbuff, c0, c0, "ptr", b); // -> %ptr = getelementptr [4096 x uint]* %buff, int 0, int 0 new StoreInst (c2, ptr, b); // -> store uint 2, uint* %ptr new ReturnInst (b); ExistingMod...
2005 Apr 11
0
[LLVMdev] JIT and array pointers
...= m->getOrInsertFunction ("test_function", Type::VoidTy, > 0); > BasicBlock *b = new BasicBlock ("entry_block", f); > > // Here is the problem. > // I need to get the buff pointer into variable, which I can > // pass to GetElementPtrInst > // Value *pbuff = ?? > // -> %pbuff = external global [4096 x uint] pbuff = BuffGV; > Value *ptr = new GetElementPtrInst (pbuff, c0, c0, "ptr", b); > // -> %ptr = getelementptr [4096 x uint]* %buff, int 0, int 0 > new StoreInst (c2, ptr, b); > // -> store uint 2, uint*...
2010 Apr 13
1
Another newbie question on encoding
...X_GET_FRAME_SIZE, &frameSize_); // Create the output buffer outBuffer_ = new char[frameSize_]; speex_bits_init(&spx_bits_); } UINT CSpeexCodec::Encode( float *inBuff, char **outBuff, UINT BufferFrames ) { INT nBytes = 0; float *pBuff = inBuff; if (!spx_state_) return 0; while (BufferFrames>0) { speex_bits_reset(&spx_bits_); speex_encode(spx_state_, pBuff, &spx_bits_); nBytes += speex_bits_write(&spx_bits_, outBuffer_, frameSize_); pBuff += frameSize_; BufferFrames -= frameSize_; }...
2005 Apr 11
0
[LLVMdev] JIT and array pointers
On Mon, 11 Apr 2005, Paul wrote: > I'm trying to pass an array pointer to my run-time generated module, and > after a long time of searching for the answer, the only thing I got was > a headache. Basically I have a few arrays (few megabytes which will > sometimes be accessed as 8 / 16 / 32 / 64 bit binary / fp values), that > will be modified by both the generated module, and my
2005 Apr 10
2
[LLVMdev] JIT and array pointers
I'm trying to pass an array pointer to my run-time generated module, and after a long time of searching for the answer, the only thing I got was a headache. Basically I have a few arrays (few megabytes which will sometimes be accessed as 8 / 16 / 32 / 64 bit binary / fp values), that will be modified by both the generated module, and my main c program, so I would like to put those into global