From d1801c23fae3777c7c59e084894a3410f7a1f932 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 18 Nov 2008 15:38:37 +0000 Subject: Mark if(status) as being unlikely. The error paths should be hit very rarely during normal operation, so mark them as being unlikely so gcc may emit better code. --- src/cairo-output-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-output-stream.c') diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index 9a58aac2..780bd50c 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -696,7 +696,7 @@ _cairo_memory_stream_destroy (cairo_output_stream_t *abstract_stream, cairo_status_t status; status = abstract_stream->status; - if (status) + if (unlikely (status)) return _cairo_output_stream_destroy (abstract_stream); stream = (memory_stream_t *) abstract_stream; -- cgit v1.2.3