aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/lib.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2012-09-12 20:41:01 +0100
committerKeir Fraser <keir@xen.org>2012-09-12 20:41:01 +0100
commita9c02a0d888864daeca191d25601725c5177ec40 (patch)
treeb249b5354a3939c5c675e463571b40c8717c96af /xen/common/lib.c
parentfe4ebf84c6aaa4d96ab333cbd478cb67a818814c (diff)
downloadxen-a9c02a0d888864daeca191d25601725c5177ec40.tar.gz
xen-a9c02a0d888864daeca191d25601725c5177ec40.tar.bz2
xen-a9c02a0d888864daeca191d25601725c5177ec40.zip
In most of the codebase, use CONFIG_X86 in place of __i386__||__x86_64__
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/lib.c')
-rw-r--r--xen/common/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/lib.c b/xen/common/lib.c
index e9d0637b68..03c8b8b8f4 100644
--- a/xen/common/lib.c
+++ b/xen/common/lib.c
@@ -423,7 +423,7 @@ s64 __ldivmod_helper(s64 a, s64 b, s64 *r)
/* Compute with 96 bit intermediate result: (a*b)/c */
uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c)
{
-#ifdef __x86_64__
+#ifdef CONFIG_X86
asm ( "mul %%rdx; div %%rcx" : "=a" (a) : "0" (a), "d" (b), "c" (c) );
return a;
#else