All of lore.kernel.org
 help / color / mirror / Atom feed
* conf: fix snd_func_imul accumulator initialization
       [not found] <alsa-project/alsa-lib/pr/511@alsa-project.org>
@ 2026-06-14 19:14 ` GitHub pull_request - opened
  0 siblings, 0 replies; only message in thread
From: GitHub pull_request - opened @ 2026-06-14 19:14 UTC (permalink / raw)
  To: alsa-devel

alsa-project/alsa-lib pull request #511 was opened from orange-dot:

snd_func_iops() initialized result to 0 for both iadd and imul. For
imul, every multiplication step therefore multiplied by 0, so @func imul
always evaluated to 0.

Initialize the accumulator to 1 for imul, while preserving the existing
0 result for an empty integers list. Add regression coverage for iadd and
imul evaluation.

Fixes: https://github.com/alsa-project/alsa-lib/issues/456

Request URL   : https://github.com/alsa-project/alsa-lib/pull/511
Patch URL     : https://github.com/alsa-project/alsa-lib/pull/511.patch
Repository URL: https://github.com/alsa-project/alsa-lib

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-14 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <alsa-project/alsa-lib/pr/511@alsa-project.org>
2026-06-14 19:14 ` conf: fix snd_func_imul accumulator initialization GitHub pull_request - opened

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.