search for: lshift

Displaying 14 results from an estimated 14 matches for "lshift".

Did you mean: shift
2014 May 29
2
[PATCH 2/4] nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions
...ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 58092f4..93f7c2a 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -529,8 +529,18 @@ ConstantFolding::expr(Instruction *i, lshift = 32 - width - offset; } switch (i->dType) { - case TYPE_S32: res.data.s32 = (a->data.s32 << lshift) >> rshift; break; - case TYPE_U32: res.data.u32 = (a->data.u32 << lshift) >> rshift; break; + case TYPE_S32: { + res.data.s32 =...
2014 May 29
1
[PATCH 2/4] nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions
...codegen/nv50_ir_peephole.cpp >> index 58092f4..93f7c2a 100644 >> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp >> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp >> @@ -529,8 +529,18 @@ ConstantFolding::expr(Instruction *i, >> lshift = 32 - width - offset; >> } >> switch (i->dType) { >> - case TYPE_S32: res.data.s32 = (a->data.s32 << lshift) >> rshift; break; >> - case TYPE_U32: res.data.u32 = (a->data.u32 << lshift) >> rshift; break; >> +...
2013 Apr 23
2
Tests not aborting when appropriate
...metaflac.sh) > [...] > test case60: --remove --block-type=PICTURE... OK > test case61: --import-picture-from... OK > test case62: --import-picture-from... OK > Testing FLAC file with unknown metadata... OK > Testing FLAC replaygain 8000 (8000 x 1) ... awk: line 29: function > lshift never defined > ERROR, Expected -12.73 db instead of comment[1]: > REPLAYGAIN_TRACK_GAIN=-24601.00 dB > OK > [...] > Testing FLAC replaygain 192000 (48000 x 4) ... awk: line 29: function > lshift never defined > ERROR, Expected -14.16 db instead of comment[1]: > REPLAYGAI...
2014 Jun 03
8
[PATCH v2 0/4] Constant folding of new Instructions
And another try for constant folding of Instructions for nvc0. Please Review this! Thanks, Tobias Klausmann Tobias Klausmann (4): nvc0/ir: clear subop when folding constant expressions nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions nvc0/ir: Handle OP_BFIND when folding constant expressions nvc0/ir: Handle OP_POPCNT when folding constant expressions
2014 May 29
0
[PATCH 2/4] nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions
...lium/drivers/nouveau/codegen/nv50_ir_peephole.cpp > index 58092f4..93f7c2a 100644 > --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp > +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp > @@ -529,8 +529,18 @@ ConstantFolding::expr(Instruction *i, > lshift = 32 - width - offset; > } > switch (i->dType) { > - case TYPE_S32: res.data.s32 = (a->data.s32 << lshift) >> rshift; break; > - case TYPE_U32: res.data.u32 = (a->data.u32 << lshift) >> rshift; break; > + case TYPE_S32: {...
2014 Jun 03
0
[PATCH v2 2/4] nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions
...ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 58092f4..a214ffc 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -529,8 +529,20 @@ ConstantFolding::expr(Instruction *i, lshift = 32 - width - offset; } switch (i->dType) { - case TYPE_S32: res.data.s32 = (a->data.s32 << lshift) >> rshift; break; - case TYPE_U32: res.data.u32 = (a->data.u32 << lshift) >> rshift; break; + case TYPE_S32: + if (i->subOp =...
2014 May 29
4
Add constant folding for new opcodes
Hi, please review the following 4 patches: 1b1cfc6 nvc0/ir: Handle OP_BFIND when folding constant expressions d2d2727 nvc0/ir: Handle OP_POPCNT when folding constant expressions 86a1ee6 nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions 84563bf nvc0/ir: clear subop when folding constant expressions src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 39
2013 Apr 24
3
Tests not aborting when appropriate
On 24-04-13 14:34, Erik de Castro Lopo wrote: > That's an error in the awk script, which is embedded in the shell > script. I know GNU awk supports lshift, maybe BSD awk doesn't. I'll > investigate that futher. On my system awk links to mawk 1.3.3 >> I don't know why, but the test continues and says all tests passed while >> that clearly isn't the case. > When the error is detected in the shell script it does abo...
2014 Jun 03
6
[PATCH v3 0/4] Constant folding of new Instructions
Yet another try for constant folding of Instructions for nvc0. Please Review this again! (Hopefully the last time ;-) ) Tobias Klausmann (4): nvc0/ir: clear subop when folding constant expressions nvc0/ir: Handle reverse subop for OP_EXTBF when folding constant expressions nvc0/ir: Handle OP_BFIND when folding constant expressions nvc0/ir: Handle OP_POPCNT when folding constant
2013 Apr 24
0
Tests not aborting when appropriate
...> test case60: --remove --block-type=PICTURE... OK > > test case61: --import-picture-from... OK > > test case62: --import-picture-from... OK > > Testing FLAC file with unknown metadata... OK > > Testing FLAC replaygain 8000 (8000 x 1) ... awk: line 29: function > > lshift never defined That's an error in the awk script, which is embedded in the shell script. I know GNU awk supports lshift, maybe BSD awk doesn't. I'll investigate that futher. > I don't know why, but the test continues and says all tests passed while > that clearly isn't...
2012 Feb 20
0
Regain play analysis patches
...ified as one of the standard commands in the LSB : http://refspecs.linuxfoundation.org/LSB_1.0.0/gLSB/command.html Earl ??? awk -- ' ??? BEGIN { ??????????? samplerate = 8000; ??????????? tone = 1000; ??????????? duration = 1; ??????????? bitspersample = 24; ??????????? samplemidpoint = lshift(1, (bitspersample-1)); ??????????? samplerange = samplemidpoint - 1; ??????????? pi = 4 * atan2(1,1); ??????????? for (ix = 0; ix < duration * samplerate; ++ix) { ??????????????????? sample = sin(2 * pi * tone * ix / samplerate); ??????????????????? sample *= samplerange; ??????????????????? s...
2020 Apr 01
0
[ANNOUNCE] nftables 0.9.4 release
...^^^^ If you delete a table whose name has been mistyped, error reporting includes a suggestion. * Match on the slave interface through `meta sdif' and `meta sdifname', e.g. ... meta sdifname vrf1 ... * Support for right and left shifts: ... meta mark set meta mark lshift 1 or 0x1 ... This example shows how to shift one bit left the existing packet mark and set the less significant bit to 1. * New -V option to display extended version information, including compile time options: # nft -V nftables v0.9.4 (Jive at Five) cli: rea...
2012 Feb 17
3
Regain play analysis patches
Earl Chew wrote: > I'm a little reluctant to introduce another compiled program when there are > so many other options that will work well enough out of the box. > > Here are two ideas: > > 1. Use bc(1) to compute the raw samples > 2. Use perl(1) to compute the raw samples > > To generate raw unsigned samples using bc(1) for example: > > samplerate = 1000;
2012 Feb 26
3
PATCH: Add test for metaflac --add-replay-gain
...pecific filter table entries +# and verify that harmonics can be processed correctly. + +tonegenerator () +{ +??? awk -- ' +??? BEGIN { +??????????? samplerate = '$1'; + +??????????? tone = 1000; +??????????? duration = 1; +??????????? bitspersample = 24; + +??????????? samplemidpoint = lshift(1, (bitspersample-1)); +??????????? samplerange = samplemidpoint - 1; + +??????????? pi = 4 * atan2(1,1); + +??????????? for (ix = 0; ix < duration * samplerate; ++ix) { +??????????????????? sample = sin(2 * pi * tone * ix / samplerate); +??????????????????? sample *= samplerange; +?????????????...