diff options
author | lloyd <[email protected]> | 2006-06-06 00:16:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-06 00:16:56 +0000 |
commit | 537a212258bee02c63348f301c0b2b32f9210648 (patch) | |
tree | 6817a180e9bac583965284924f8c07cca262c855 /modules/mp_ia32 | |
parent | b377b2d7c8e7947f7e6d6a3fce3edb76b0e2d928 (diff) |
Instead of #undef'ing ASM at the end of mp_asm.h, just have
mp_asmi.h check to see if it has already been defined.
Diffstat (limited to 'modules/mp_ia32')
-rw-r--r-- | modules/mp_ia32/mp_asm.h | 3 | ||||
-rw-r--r-- | modules/mp_ia32/mp_asmi.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/mp_ia32/mp_asm.h b/modules/mp_ia32/mp_asm.h index 0d6dcab97..374fd506b 100644 --- a/modules/mp_ia32/mp_asm.h +++ b/modules/mp_ia32/mp_asm.h @@ -95,9 +95,6 @@ inline void word3_muladd_2(word* w2, word* w1, word* w0, word x, word y) : "cc"); } -// fixme -#undef ASM - } } diff --git a/modules/mp_ia32/mp_asmi.h b/modules/mp_ia32/mp_asmi.h index b75b79a9d..979ae6ca7 100644 --- a/modules/mp_ia32/mp_asmi.h +++ b/modules/mp_ia32/mp_asmi.h @@ -13,7 +13,9 @@ namespace Botan { /************************************************* * Helper Macros for x86 Assembly * *************************************************/ -#define ASM(x) x "\n\t" +#ifndef ASM + #define ASM(x) x "\n\t" +#endif #define ADDSUB2_OP(OPERATION, INDEX) \ ASM("movl 4*" INDEX "(%[y]), %[carry]") \ |