From fb0a52a34ae0428cf788c16b968cb1f2e6cbb461 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Aug 2012 20:01:03 +0200 Subject: decoder/mad, output_thread: add gcc_unlikely() --- src/decoder/mad_decoder_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/mad_decoder_plugin.c') 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 */ -- cgit v1.2.3