[flac-dev] Undefined behaviour

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Aug 28 17:05:00 PDT 2015


Timothy B. Terriberry wrote:

> The approach we used in Opus was to use unsigned shifts:
> 
> https://git.xiph.org/?p=opus.git;a=commitdiff;h=1ee139bca076
> 
> That relies on implementation-defined behavior, but not undefined behavior.

Yep, that ia an alternative if the benchmarking shows that multiplication
is slower than shifting.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list