Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / include / asm-ia64 / intel_intrin.h
index abc660e..d069b6a 100644 (file)
                         * intrinsic
                         */
 
-#define __ia64_getreg          __getReg
-#define __ia64_setreg          __setReg
-
-#define __ia64_hint(x)
+#define ia64_getreg            __getReg
+#define ia64_setreg            __setReg
 
 #define ia64_hint              __hint
 #define ia64_hint_pause                __hint_pause
 #define ia64_getf_exp          __getf_exp
 #define ia64_shrp              _m64_shrp
 
-#define __ia64_tpa             __tpa
+#define ia64_tpa               __tpa
 #define ia64_invala            __invala
 #define ia64_invala_gr         __invala_gr
 #define ia64_invala_fr         __invala_fr
 #define ia64_nop               __nop
 #define ia64_sum               __sum
-#define __ia64_ssm             __ssm
+#define ia64_ssm               __ssm
 #define ia64_rum               __rum
-#define __ia64_rsm             __rsm
-#define __ia64_fc              __fc
+#define ia64_rsm               __rsm
+#define ia64_fc                __fc
 
 #define ia64_ldfs              __ldfs
 #define ia64_ldfd              __ldfd
 
 #define __ia64_set_dbr(index, val)     \
                __setIndReg(_IA64_REG_INDR_DBR, index, val)
-#define __ia64_set_ibr(index, val)     \
+#define ia64_set_ibr(index, val)       \
                __setIndReg(_IA64_REG_INDR_IBR, index, val)
-#define __ia64_set_pkr(index, val)     \
+#define ia64_set_pkr(index, val)       \
                __setIndReg(_IA64_REG_INDR_PKR, index, val)
-#define __ia64_set_pmc(index, val)     \
+#define ia64_set_pmc(index, val)       \
                __setIndReg(_IA64_REG_INDR_PMC, index, val)
-#define __ia64_set_pmd(index, val)     \
+#define ia64_set_pmd(index, val)       \
                __setIndReg(_IA64_REG_INDR_PMD, index, val)
-#define __ia64_set_rr(index, val)      \
+#define ia64_set_rr(index, val)        \
                __setIndReg(_IA64_REG_INDR_RR, index, val)
 
-#define __ia64_get_cpuid(index)        __getIndReg(_IA64_REG_INDR_CPUID, index)
+#define ia64_get_cpuid(index)  __getIndReg(_IA64_REG_INDR_CPUID, index)
 #define __ia64_get_dbr(index)  __getIndReg(_IA64_REG_INDR_DBR, index)
-#define __ia64_get_ibr(index)  __getIndReg(_IA64_REG_INDR_IBR, index)
-#define __ia64_get_pkr(index)  __getIndReg(_IA64_REG_INDR_PKR, index)
-#define __ia64_get_pmc(index)  __getIndReg(_IA64_REG_INDR_PMC, index)
-#define __ia64_get_pmd(index)          __getIndReg(_IA64_REG_INDR_PMD, index)
-#define __ia64_get_rr(index)   __getIndReg(_IA64_REG_INDR_RR, index)
+#define ia64_get_ibr(index)    __getIndReg(_IA64_REG_INDR_IBR, index)
+#define ia64_get_pkr(index)    __getIndReg(_IA64_REG_INDR_PKR, index)
+#define ia64_get_pmc(index)    __getIndReg(_IA64_REG_INDR_PMC, index)
+#define ia64_get_pmd(index)    __getIndReg(_IA64_REG_INDR_PMD, index)
+#define ia64_get_rr(index)     __getIndReg(_IA64_REG_INDR_RR, index)
 
 #define ia64_srlz_d            __dsrlz
 #define ia64_srlz_i            __isrlz
 #define ia64_ld8_acq           __ld8_acq
 
 #define ia64_sync_i            __synci
-#define __ia64_thash           __thash
-#define __ia64_ttag            __ttag
-#define __ia64_itcd            __itcd
-#define __ia64_itci            __itci
-#define __ia64_itrd            __itrd
-#define __ia64_itri            __itri
-#define __ia64_ptce            __ptce
-#define __ia64_ptcl            __ptcl
-#define __ia64_ptcg            __ptcg
-#define __ia64_ptcga           __ptcga
-#define __ia64_ptri            __ptri
-#define __ia64_ptrd            __ptrd
+#define ia64_thash             __thash
+#define ia64_ttag              __ttag
+#define ia64_itcd              __itcd
+#define ia64_itci              __itci
+#define ia64_itrd              __itrd
+#define ia64_itri              __itri
+#define ia64_ptce              __ptce
+#define ia64_ptcl              __ptcl
+#define ia64_ptcg              __ptcg
+#define ia64_ptcga             __ptcga
+#define ia64_ptri              __ptri
+#define ia64_ptrd              __ptrd
 #define ia64_dep_mi            _m64_dep_mi
 
 /* Values for lfhint in __lfetch and __lfetch_fault */
 #define ia64_lfetch_fault      __lfetch_fault
 #define ia64_lfetch_fault_excl __lfetch_fault_excl
 
-#define __ia64_intrin_local_irq_restore(x)             \
+#define ia64_intrin_local_irq_restore(x)               \
 do {                                                   \
        if ((x) != 0) {                                 \
-               __ia64_ssm(IA64_PSR_I);                 \
+               ia64_ssm(IA64_PSR_I);                   \
                ia64_srlz_d();                          \
        } else {                                        \
-               __ia64_rsm(IA64_PSR_I);                 \
+               ia64_rsm(IA64_PSR_I);                   \
        }                                               \
 } while (0)
 
-#define __ia64_get_psr_i()     (__ia64_getreg(_IA64_REG_PSR) & 0x4000UL)
-
 #define __builtin_trap()       __break(0);
 
 #endif /* _ASM_IA64_INTEL_INTRIN_H */