[flac-dev] Undefined behaviour

Timothy B. Terriberry tterribe at xiph.org
Fri Aug 28 16:37:10 PDT 2015


Erik de Castro Lopo wrote:
> has no performance impact on x86_64 linux, *may* not be the same with
> other compilers.

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.


More information about the flac-dev mailing list