Displaying 7 results from an estimated 7 matches for "val_i".
2005 Jan 01
2
libFLAC bitbuffer optimizations
...uval <<= available_bits;
- uval |= (blurb >> cbits);
- cbits = 0;
- CRC16_UPDATE_BLURB(bb, save_blurb, bb->read_crc16);
-
- if(lsbs_left == available_bits) {
- /* compose the value */
- uval |= (msbs << parameter);
- if(uval & 1)
- vals[val_i++] = -((int)(uval >> 1)) - 1;
- else
- vals[val_i++] = (int)(uval >> 1);
- if(val_i == nvals)
- break;
-
- msbs = 0;
- state = 0;
- }
-
- lsbs_left -= available_bits;
- break;
- }
- else {
- uval <<= lsbs_left;
- uval |= (b...
2004 Dec 28
2
libFLAC bitbuffer optimizations
Pulled from my Arch archive, this following patch seems to have made
quite a difference in getting my ARM7TDMI chip to play FLAC (compression
levels 0-2) on my ipod. I don't have benchmarks with hard numbers, but
playing with skips vs playing without skips is a fairly noticeable
difference.
memcpy and memset on uClibc are optimized in asm for the ARM7TDMI in
uClibc. Other hardware/libc
2004 Sep 10
4
bitbuffer optimizations
...uval <<= available_bits;
- uval |= (blurb >> cbits);
- cbits = 0;
- CRC16_UPDATE_BLURB(bb, save_blurb, bb->read_crc16);
-
- if(lsbs_left == available_bits) {
- /* compose the value */
- uval |= (msbs << parameter);
- if(uval & 1)
- vals[val_i++] = -((int)(uval >> 1)) - 1;
- else
- vals[val_i++] = (int)(uval >> 1);
- if(val_i == nvals)
- break;
-
- msbs = 0;
- state = 0;
- }
-
- lsbs_left -= available_bits;
- break;
- }
- else {
- uval <<= lsbs_left;
- uval |= (b...
2008 May 30
1
Modify string-regular expression
Hi there everybody,
I would like to be able to modify a string like 'Param_i = Val_i-1' in 'Param_i = Val_i-2' in a text file
Indeed I have two arrays :
-One for the name of my parameters
-One for the new values for each parameter
I would like to write a loop like this one :
...
SCAN <- scan("File.txt",sep="\n", what="raw",blank.line...
2016 Jun 24
6
RFC: Strong GC References in LLVM
...%val = inttoptr %val to GCREF
is valid.
Both the initial and the final program assume that %val is a valid
bitwise representation of a GC reference.
(Note: it may not be valid to speculate the inttoptr instruction above
control flow).
### Load forwarding between integers and GCREFs is invalid
%val_i = load i64, i64* %loc
%val_p = load GCREF, GCREF* (bitcast %loc)
==>
%val_i = load i64, i64* %loc
%val_p = inttoptr %val_i to GCREF
is invalid if *%loc contains a GC reference. Given the model that we
have, the first program loads some bitwise representation of
fluctuating a GC reference, and...
2016 Jul 12
2
RFC: Strong GC References in LLVM
...control flow).
>
> Why do you need this? As in the previous case, it doesn’t seem like a
sound representation.
We don't need this -- the only realistic place this can happen in is
in dead code.
>> ### Load forwarding between integers and GCREFs is invalid
>>
>> %val_i = load i64, i64* %loc
>> %val_p = load GCREF, GCREF* (bitcast %loc)
>> ==>
>> %val_i = load i64, i64* %loc
>> %val_p = inttoptr %val_i to GCREF
>>
>> is invalid if *%loc contains a GC reference. Given the model that we
>> have, the first program...
2004 Sep 30
1
[don@donarmstrong.com: Bug#274301: libflac4 segfaults on corrupt flac files]
...805ba58) at bitbuffer.c:2254
available_bits = 134733184
buffer = (
const FLAC__blurb *) 0x8060228 "o?z\023\017\a???\216???c??????vc?\201q\030NE+\030\213?5*?k??R2?\035?\207iP!?\237??oQ??\207?\202\"?\235\220?\212Us??v??f??\231%\233??qJ??oLF\024???>?j%\237??"
i = 44552
j = 8
val_i = 70816
cbits = 1
uval = 631
msbs = 1
lsbs_left = 1
blurb = 158 '\236'
save_blurb = 196 '?'
state = 1
#1 0x4021f88d in read_residual_partitioned_rice_ (decoder=0x805ba58, predictor_order=3, partition_order=14, partitioned_rice_contents=0x805f478,
residual=0x807dd80) at...