aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/lib.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-06-24 10:57:00 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-06-24 10:57:00 +0100
commitc764820ae6c300900aecc04dab691b14f4152f13 (patch)
treeb105569caa7337be0fcb2db2b3d3acca66378455 /xen/include/xen/lib.h
parent448dac02973ea594c7d5a9ba31da3b6e3ae1ef2d (diff)
downloadxen-c764820ae6c300900aecc04dab691b14f4152f13.tar.gz
xen-c764820ae6c300900aecc04dab691b14f4152f13.tar.bz2
xen-c764820ae6c300900aecc04dab691b14f4152f13.zip
Move muldiv64 out and make it as a public function.
muldiv64 is used to caculate u64*u32/u32, and we will use it for TSC scaling. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/lib.h')
-rw-r--r--xen/include/xen/lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h
index 6b5033a36e..bca0d65df0 100644
--- a/xen/include/xen/lib.h
+++ b/xen/include/xen/lib.h
@@ -99,6 +99,8 @@ unsigned long long simple_strtoull(
unsigned long long parse_size_and_unit(const char *s, const char **ps);
+uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c);
+
#define TAINT_UNSAFE_SMP (1<<0)
#define TAINT_MACHINE_CHECK (1<<1)
#define TAINT_BAD_PAGE (1<<2)