diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-03-26 04:39:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:09 -0500 |
commit | 4b417d0c7cb6af4afb7bad6463f7f3227d8a5074 (patch) | |
tree | 514ad66b1ee3286d877aa5d1cf18dc970bbe5722 /arch/alpha/lib/fpreg.c | |
parent | 20548664aa2d98ba0ee3dde4482b0a96b9273b6f (diff) |
[PATCH] bitops: alpha: use config options instead of __alpha_fix__ and __alpha_cix__
Use config options instead of gcc builtin definition to tell the use of
instruction set extensions (CIX and FIX).
This is introduced to tell the kbuild system the use of opmized hweight*()
routines on alpha architecture.
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/alpha/lib/fpreg.c')
-rw-r--r-- | arch/alpha/lib/fpreg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/alpha/lib/fpreg.c b/arch/alpha/lib/fpreg.c index 97c4d9d7a4d5..05017ba34c3c 100644 --- a/arch/alpha/lib/fpreg.c +++ b/arch/alpha/lib/fpreg.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * (C) Copyright 1998 Linus Torvalds | 4 | * (C) Copyright 1998 Linus Torvalds |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 7 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
8 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); | 8 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); |
9 | #else | 9 | #else |
10 | #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); | 10 | #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); |
@@ -53,7 +53,7 @@ alpha_read_fp_reg (unsigned long reg) | |||
53 | return val; | 53 | return val; |
54 | } | 54 | } |
55 | 55 | ||
56 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 56 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
57 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); | 57 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); |
58 | #else | 58 | #else |
59 | #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); | 59 | #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); |
@@ -98,7 +98,7 @@ alpha_write_fp_reg (unsigned long reg, unsigned long val) | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 101 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
102 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); | 102 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); |
103 | #else | 103 | #else |
104 | #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); | 104 | #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); |
@@ -147,7 +147,7 @@ alpha_read_fp_reg_s (unsigned long reg) | |||
147 | return val; | 147 | return val; |
148 | } | 148 | } |
149 | 149 | ||
150 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 150 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
151 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); | 151 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); |
152 | #else | 152 | #else |
153 | #define LDS(reg,val) asm volatile ("lds $f"#reg",%0" : : "m"(val)); | 153 | #define LDS(reg,val) asm volatile ("lds $f"#reg",%0" : : "m"(val)); |