rtasm: Cygwin uses the msabi calling convention on x86_64
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 3 Oct 2013 20:11:52 +0000 (21:11 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 18 Oct 2013 13:16:56 +0000 (14:16 +0100)
Cygwin also uses the msabi calling convention on x86_64, not the sysvabi calling
convention

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Brian Paul <brianp@vmware.com>
ignored, and an empty message aborts the commit.

src/gallium/auxiliary/rtasm/rtasm_x86sse.h

index 67c9bdd99322c017472e8f6849492791f3eb0227..498ca824cd1e9181dad54c139c40042b0e44d9b5 100644 (file)
@@ -140,7 +140,7 @@ static INLINE enum x86_target x86_target( struct x86_function* p )
 {
 #ifdef PIPE_ARCH_X86
    return X86_32;
-#elif defined(_WIN64)
+#elif (defined(PIPE_OS_CYGWIN) || defined(PIPE_OS_WINDOWS)) && defined(PIPE_ARCH_X86_64)
    return X86_64_WIN64_ABI;
 #elif defined(PIPE_ARCH_X86_64)
    return X86_64_STD_ABI;