Make the fast_path implementation run the c_fast_paths
[profile/ivi/pixman.git] / pixman / pixman-sse2.h
1 /*
2  * Copyright © 2008 Rodrigo Kumpera
3  * Copyright © 2008 André Tupinambá
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and its
6  * documentation for any purpose is hereby granted without fee, provided that
7  * the above copyright notice appear in all copies and that both that
8  * copyright notice and this permission notice appear in supporting
9  * documentation, and that the name of Red Hat not be used in advertising or
10  * publicity pertaining to distribution of the software without specific,
11  * written prior permission.  Red Hat makes no representations about the
12  * suitability of this software for any purpose.  It is provided "as is"
13  * without express or implied warranty.
14  *
15  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
16  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
20  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
21  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22  * SOFTWARE.
23  *
24  * Author:  Rodrigo Kumpera (kumpera@gmail.com)
25  *          André Tupinambá (andrelrt@gmail.com)
26  * 
27  * Based on work by Owen Taylor and Søren Sandmann
28  */
29 #ifndef _PIXMAN_SSE_H_
30 #define _PIXMAN_SSE_H_
31
32 #ifdef HAVE_DIX_CONFIG_H
33 #include <dix-config.h>
34 #endif
35
36 #include "pixman-private.h"
37
38 #ifdef USE_SSE2
39
40 #if !defined(__amd64__) && !defined(__x86_64__)
41 pixman_bool_t pixman_have_sse2(void);
42 #else
43 #define pixman_have_sse2() TRUE
44 #endif
45
46 #else
47 #define pixman_have_sse2() FALSE
48 #endif
49
50 #ifdef USE_SSE2
51
52 pixman_bool_t
53 pixmanFillsse2 (uint32_t *bits,
54                  int stride,
55                  int bpp,
56                  int x,
57                  int y,
58                  int width,
59                  int height,
60                  uint32_t data);
61
62 #endif /* USE_SSE2 */
63
64 #endif /* _PIXMAN_SSE_H_ */