vpx_dsp_common.h,clip_pixel: work around VS2022 Arm64 issue
authorJames Zern <jzern@google.com>
Tue, 23 May 2023 22:50:10 +0000 (15:50 -0700)
committerJames Zern <jzern@google.com>
Tue, 23 May 2023 22:52:09 +0000 (15:52 -0700)
commit25f2e1ef255e89d5e7357aa2427926776327765a
treeee0db6c6b6e56a6362de8713866a89b0742cedea
parent95b56ab7df669ec5dd29c283fa5bf6d38c2df5d1
vpx_dsp_common.h,clip_pixel: work around VS2022 Arm64 issue

cl.exe targeting AArch64 with optimizations enabled
produces invalid code for clip_pixel() when the return type is uint8_t.
See:
https://developercommunity.visualstudio.com/t/Misoptimization-for-ARM64-in-VS-2022-17/10363361

Bug: b/277255076
Bug: webm:1788
Change-Id: Ia3647698effd34f1cf196cd33fa4a8cab9fa53d6
vpx_dsp/vpx_dsp_common.h