aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mp_amd64/mp_asmi.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-06 00:16:56 +0000
committerlloyd <[email protected]>2006-06-06 00:16:56 +0000
commit537a212258bee02c63348f301c0b2b32f9210648 (patch)
tree6817a180e9bac583965284924f8c07cca262c855 /modules/mp_amd64/mp_asmi.h
parentb377b2d7c8e7947f7e6d6a3fce3edb76b0e2d928 (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_amd64/mp_asmi.h')
-rw-r--r--modules/mp_amd64/mp_asmi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mp_amd64/mp_asmi.h b/modules/mp_amd64/mp_asmi.h
index daa1243ca..cb606cfe3 100644
--- a/modules/mp_amd64/mp_asmi.h
+++ b/modules/mp_amd64/mp_asmi.h
@@ -13,7 +13,9 @@ namespace Botan {
/*************************************************
* Helper Macros for amd64 Assembly *
*************************************************/
-#define ASM(x) x "\n\t"
+#ifndef ASM
+ #define ASM(x) x "\n\t"
+#endif
#define ADDSUB2_OP(OPERATION, INDEX) \
ASM("movq 8*" INDEX "(%[y]), %[carry]") \