diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-21 22:41:00 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-02-21 11:46:01 +0100 |
commit | 1a9972457cce83a714a8507532bacadda528f767 (patch) | |
tree | 06090d701a3cbf38f8e39da3e1982a4965c92dfc | |
parent | b8e2598beb80e7d6dc91d595834ac4ba978d3246 (diff) |
mingw: disable inline ASM
-rw-r--r-- | xddm/display/driver.c | 2 | ||||
-rw-r--r-- | xddm/display/res.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/xddm/display/driver.c b/xddm/display/driver.c index d7fdbf7..b44c611 100644 --- a/xddm/display/driver.c +++ b/xddm/display/driver.c @@ -246,7 +246,7 @@ BOOL DrvEnableDriver(ULONG engine_version, ULONG enable_data_size, PDRVENABLEDAT mspace_set_abort_func(mspace_abort); mspace_set_print_func(mspace_print); ResInitGlobals(); -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ CheckAndSetSSE2(); #endif DEBUG_PRINT((NULL, 1, "%s: end\n", __FUNCTION__)); diff --git a/xddm/display/res.c b/xddm/display/res.c index e494271..4f90343 100644 --- a/xddm/display/res.c +++ b/xddm/display/res.c @@ -1068,7 +1068,7 @@ static BOOL SetClip(PDev *pdev, CLIPOBJ *clip, QXLDrawable *drawable) return TRUE; } -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ static _inline void fast_memcpy_aligment(void *dest, const void *src, size_t len) { @@ -1308,7 +1308,7 @@ static void __PutBytesAlign(PDev *pdev, QXLDataChunk **chunk_ptr, UINT8 **now_pt NEW_DATA_CHUNK(page_counter, aligned_size); cp_size = (int)MIN(end - now, size); } -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ if (use_sse) { offset = (size_t)now & SSE_MASK; if (offset) { @@ -1809,7 +1809,7 @@ static void FreeBitmapImage(PDev *pdev, Resource *res) // todo: defer DEBUG_PRINT((pdev, 13, "%s: done\n", __FUNCTION__)); } -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ static _inline void RestoreFPU(PDev *pdev, UINT8 FPUSave[]) { @@ -1900,7 +1900,7 @@ static _inline Resource *GetBitmapImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *col dest_end = (UINT8 *)image_res + alloc_size; alloc_size = height * line_size; -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ if (have_sse2 && alloc_size >= 1024) { use_sse = TRUE; SaveFPU(pdev, FPUSave); @@ -1910,7 +1910,7 @@ static _inline Resource *GetBitmapImage(PDev *pdev, SURFOBJ *surf, XLATEOBJ *col PutBytesAlign(pdev, &chunk, &dest, &dest_end, src, line_size, &pdev->num_bits_pages, alloc_size, line_size, use_sse); } -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ if (use_sse) { RestoreFPU(pdev, FPUSave); } @@ -3367,7 +3367,7 @@ void ResDestroyGlobals() image_id_sem = NULL; } -#ifndef _WIN64 +#if !defined _WIN64 && !defined __MINGW32__ void CheckAndSetSSE2() { |