From 08b317a5f519978cfabebd75d5595b19fc1d1425 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 24 Apr 2008 00:41:16 +0200 Subject: [PATCH] Refactor path selection --- pixman/pixman-pict.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pixman/pixman-pict.c b/pixman/pixman-pict.c index c758823..1b4c81f 100644 --- a/pixman/pixman-pict.c +++ b/pixman/pixman-pict.c @@ -1742,23 +1742,19 @@ pixman_image_composite (pixman_op_t op, #ifdef USE_SSE2 if (pixman_have_sse ()) info = get_fast_path (sse_fast_paths, op, pSrc, pMask, pDst, pixbuf); - if (!info) #endif #ifdef USE_MMX - - if (pixman_have_mmx()) + if (!info && pixman_have_mmx()) info = get_fast_path (mmx_fast_paths, op, pSrc, pMask, pDst, pixbuf); - if (!info) #endif #ifdef USE_VMX - if (pixman_have_vmx()) + if (!info && pixman_have_vmx()) info = get_fast_path (vmx_fast_paths, op, pSrc, pMask, pDst, pixbuf); - if (!info) #endif - + if (!info) info = get_fast_path (c_fast_paths, op, pSrc, pMask, pDst, pixbuf); if (info) -- 2.7.4