diff options
| author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-05-10 19:39:07 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2023-05-12 09:17:04 +0200 |
| commit | 4c7bfbcf7516b0804ba0204e865f885baca604e4 (patch) | |
| tree | b11f3cac866e1fb6d562d2ce63b56ab9513e3bd4 /tools/perf/scripts/python/bin/flamegraph-record | |
| parent | ALSA: emu10k1: fix+optimize E-MU stereo capture DSP code (diff) | |
| download | linux-4c7bfbcf7516b0804ba0204e865f885baca604e4.tar.gz linux-4c7bfbcf7516b0804ba0204e865f885baca604e4.zip | |
ALSA: emu10k1: simplify snd_emu10k1_audigy_dsp_convert_32_to_2x16()
Instead of spending lots of instructions on masking and transplanting
the sign bit, sidestep the issue by replacing the last bit shift with
a wrapping addition to self.
Solution stolen from kX-project, after I pondered other ideas first.
Also, the function really doesn't need to return a constant int value.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230510173917.3073107-5-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions
