summaryrefslogtreecommitdiff
path: root/src/mesa/sparc/clip.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/sparc/clip.S')
-rw-r--r--src/mesa/sparc/clip.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/sparc/clip.S b/src/mesa/sparc/clip.S
index 4b7e48f8e9..58c228ed15 100644
--- a/src/mesa/sparc/clip.S
+++ b/src/mesa/sparc/clip.S
@@ -2,7 +2,7 @@
* Clip testing in SPARC assembly
*/
-#if (defined(__sparc_v9__) && (!defined(__linux__) || defined(__linux_sparc_64__)))
+#if __arch64__
#define LDPTR ldx
#define V4F_DATA 0x00
#define V4F_START 0x08
@@ -25,7 +25,7 @@
#define VEC_SIZE_3 7
#define VEC_SIZE_4 15
-#ifdef SVR4
+#if defined(SVR4) || defined(__SVR4) || defined(__svr4__)
/* Solaris requires this for 64-bit. */
.register %g2, #scratch
.register %g3, #scratch