diff options
author | Max Kellermann <max@duempel.org> | 2012-08-28 20:01:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-29 17:41:22 +0200 |
commit | fb0a52a34ae0428cf788c16b968cb1f2e6cbb461 (patch) | |
tree | bce6d5958615b666af8e98abf60eabddc2001c0c /src/decoder/mad_decoder_plugin.c | |
parent | c852970cf6e8afe03b4fb99c13ef3d79db4f1103 (diff) | |
download | mpd-fb0a52a34ae0428cf788c16b968cb1f2e6cbb461.tar.gz mpd-fb0a52a34ae0428cf788c16b968cb1f2e6cbb461.tar.xz mpd-fb0a52a34ae0428cf788c16b968cb1f2e6cbb461.zip |
decoder/mad, output_thread: add gcc_unlikely()
Diffstat (limited to '')
-rw-r--r-- | src/decoder/mad_decoder_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mad_decoder_plugin.c b/src/decoder/mad_decoder_plugin.c index a69284be5..ec54e6633 100644 --- a/src/decoder/mad_decoder_plugin.c +++ b/src/decoder/mad_decoder_plugin.c @@ -76,9 +76,9 @@ mad_fixed_to_24_sample(mad_fixed_t sample) sample = sample + (1L << (MAD_F_FRACBITS - bits)); /* clip */ - if (sample > MAX) + if (gcc_unlikely(sample > MAX)) sample = MAX; - else if (sample < MIN) + else if (gcc_unlikely(sample < MIN)) sample = MIN; /* quantize */ |