From f5837da6e24cb1adf116f42724b83948c70476f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Wed, 13 May 2009 09:12:04 -0400 Subject: [PATCH] Beginning of sse2 implementation --- pixman/pixman-private.h | 6 +++++- pixman/pixman-sse2.c | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index a8c6ce4..b7b7c5d 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -1005,5 +1005,9 @@ _pixman_implementation_create_fast_path (pixman_implementation_t *toplevel); pixman_implementation_t * _pixman_implementation_create_mmx (pixman_implementation_t *toplevel); #endif - +#ifdef USE_SSE2 +pixman_implementation_t * +_pixman_implementation_create_sse2 (pixman_implementation_t *toplevel); +#endif + #endif /* PIXMAN_PRIVATE_H */ diff --git a/pixman/pixman-sse2.c b/pixman/pixman-sse2.c index d3524f4..135a5f3 100644 --- a/pixman/pixman-sse2.c +++ b/pixman/pixman-sse2.c @@ -4990,4 +4990,13 @@ static const FastPathInfo sse2_fast_path_array[] = const FastPathInfo *const sse2_fast_paths = sse2_fast_path_array; +pixman_implementation_t * +_pixman_implementation_create_sse2 (pixman_implementation_t *toplevel) +{ + pixman_implementation_t *mmx = _pixman_implementation_create_mmx (NULL); + pixman_implementation_t *imp = _pixman_implementation_create (toplevel, mmx); + + return imp; +} + #endif /* USE_SSE2 */ -- 2.7.4