search for: getbit

Displaying 10 results from an estimated 10 matches for "getbit".

Did you mean: getbits
2012 Sep 18
2
[LLVMdev] liveness assertion problem in llc
...CGA_kernel_read: Post SSA Function Live Ins: %P0 in %vreg5, %P1 in %vreg6 Function Live Outs: %P15 0B BB#0: derived from LLVM BB %entry Live Ins: %P0 %P1 16B %vreg6<def> = COPY %P1; IntRegs:%vreg6 48B %vreg8<def> = MOV32ri <ga:@fifo>, pred:%noreg; IntRegs:%vreg8 dbg:../src/getbits.c:46:1 64B %vreg9<def> = LDUBri %vreg8, 1, pred:%noreg; mem:LD1[getelementptr inbounds (%struct.FIFO* @fifo, i32 0, i32 1)] IntRegs:%vreg9,%vreg8 dbg:../src/getbits.c:46:1 80B %vreg10<def> = CMPEQI %vreg9<kill>, 0, pred:%noreg; PredRegs:%vreg10 IntRegs:%vreg9 dbg:../src/getbits...
2012 Sep 18
0
[LLVMdev] liveness assertion problem in llc
On Sep 18, 2012, at 1:45 PM, Bjorn De Sutter <bjorn.desutter at elis.ugent.be> wrote: > I am working on a backend for a CGRA architecture with advanced predicate support (as on EPIC machines and as first used in the OpenIMPACT compiler). Until last month, the backend was working fine, but since the r161643 commit by stoklund, my backend doesn't work anymore. I think I noticed some
2015 Aug 10
2
Bug or expected behavior of APFloat class?
...lvm; std::string getString(APFloat f) { SmallVector<char,10> strRep; // FormatPrecision=0 means that the "natural precision" of the number is used f.toString(strRep,/*FormatPrecision=*/0, /*FormatMaxPadding=*/0); return std::string(strRep.begin(), strRep.end()); } uint16_t getBits(APFloat f) { APInt bits = f.bitcastToAPInt(); assert(bits.getActiveBits() <= 16); return (uint16_t) (bits.getZExtValue() & 0xffff); } int main(int argc, char** argv) { APFloat f(APFloat::IEEEhalf); APFloat newF(APFloat::IEEEhalf); f.convertFromString("0.3", APFloat::r...
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...- -typedef struct bits_struct bits_t; -struct bits_struct { - unsigned char *ptr; - int idx; - unsigned char *end; -}; - -static inline int bits_needbits(bits_t *b, int n_bytes) -{ - if(b->ptr==NULL)return 1; - if(b->ptr + n_bytes > b->end)return 1; - - return 0; -} - -static inline int getbit(bits_t *b) -{ - int r; - - r = ((*b->ptr)>>(7-b->idx))&1; - - b->idx++; - if(b->idx>=8){ - b->ptr++; - b->idx = 0; - } - - return r; -} - -static inline unsigned int getbits(bits_t *b, int n) -{ - unsigned long r = 0; - int i; - - for(i=0;i<n;i++){ - r <<=...
2007 Feb 13
0
libswfdec/jpeg libswfdec/swfdec_image.c
..._bytes) +static inline int bits_needbits(bits_t *b, int n_bytes) { - if (b->ptr == NULL) - return 1; - if (b->ptr + n_bytes > b->end) - return 1; + if(b->ptr==NULL)return 1; + if(b->ptr + n_bytes > b->end)return 1; - return 0; + return 0; } -static inline int -getbit (bits_t * b) +static inline int getbit(bits_t *b) { - int r; + int r; - r = ((*b->ptr) >> (7 - b->idx)) & 1; + r = ((*b->ptr)>>(7-b->idx))&1; - b->idx++; - if (b->idx >= 8) { - b->ptr++; - b->idx = 0; - } + b->idx++; + if(b->idx&g...
2012 Sep 21
0
[LLVMdev] liveness assertion problem in llc
...ccording to CFG: BB#0 DBG_VALUE %P0, 0, !"buf"; line no:42 DBG_VALUE %R3, 0, !"count"; line no:42 DBG_VALUE %P0, 0, !"p"; line no:44 %R1<def> = MOV32ri 0, pred:%noreg %p10<def> = CMPEQI %R3, 0, pred:%noreg; dbg:../src/getbits.c:53:3 JUMP <BB#6>, pred:%p10<kill> JUMP <BB#3>, pred:%noreg Successors according to CFG: BB#3 BB#6 Several transformations are performed during branch folding: 1) As part of the branch optimization, the conditional branch is reversed. To do so, an additiona...
2007 Apr 18
2
libswfdec/jpeg
libswfdec/jpeg/jpeg_rgb_decoder.c | 1 - 1 files changed, 1 deletion(-) New commits: diff-tree 15ed4a69b4ffc265fe103ba79a0b60af7e42a9fa (from 2073f39bc0b0aa90f1f67def9bb3f0c6b68018ae) Author: Benjamin Otte <otte@gnome.org> Date: Wed Apr 18 10:47:06 2007 +0200 remove leftover debugging statement diff --git a/libswfdec/jpeg/jpeg_rgb_decoder.c b/libswfdec/jpeg/jpeg_rgb_decoder.c
2015 Aug 21
0
[ANNOUNCE] xf86-video-xgi 1.6.1
...Purge cvs tags. Johannes Obermayr (1): Fix warning: control reaches end of non-void function. Stefan Dirsch (2): Fix some serious compiler warnings. (xf86)LoaderReqSymLists is not longer supported/required. Thomas Klausner (18): Avoid redefinitions of u8, uint8_t, and GETBITS. Stop using obsolete header file. Use correct type for variable. Remove const marker for some variables. Use correct variable type. Add prototype for bGetEDID. Consistently use Bool instead of BOOL. Uncomment header includes. Use better variable type...
2014 Jan 28
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
Hi Stepan, Sorry for the delay. It's great that you are working on MergeFunctions as well and I agree, we should definitely try to combine our efforts to improve MergeFunctions. Just to give you some context, the pass (with the similar function merging patch) is already being used in a production setting. From my point of view, it would be better if we focus on improving its capability
2014 Jan 30
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
...178990 0 0.02 178990 gen_php.ll 30 209617 2 0.02 200573 2 0.03 185846 gen_ruby.ll 29 183851 4 0.02 169929 4 0.02 169929 gentwf.ll 1 55799 0 0.01 55766 0 0.01 55766 gesummv.ll 12 24932 0 0.01 24881 0 0.01 24881 getargs.ll 1 8175 0 0.01 8149 0 0.01 8149 get_audio.ll 19 84570 0 0.01 84539 0 0.01 84539 getbits.ll 8 20663 0 0.01 20628 0 0.01 20628 getblk.ll 4 82909 0 0.02 82874 0 0.01 82874 getDeleteCommand.ll 1 21890 0 0.01 21865 0 0.01 21865 getFloat.ll 1 6791 0 0.01 6766 0 0.01 6766 gethdr.ll 20 71934 0 0.01 71899 0 0.02 71899 getij.ll 1 8281 0 0.01 8255 0 0.01 8255 getInitCommand.ll 1 5634 0 0.01 560...