From 7e5d17becec58d26c74954a43bf7bfa837ed7a4e Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 25 Feb 2005 18:36:07 +0000 Subject: [PATCH] Add toUInt. git-svn-id: svn://svn.valgrind.org/vex/trunk@973 --- VEX/pub/libvex_basictypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VEX/pub/libvex_basictypes.h b/VEX/pub/libvex_basictypes.h index ef834df48..222654d99 100644 --- a/VEX/pub/libvex_basictypes.h +++ b/VEX/pub/libvex_basictypes.h @@ -90,6 +90,10 @@ static inline UShort toUShort ( Int x ) { x &= 0xFFFF; return (UShort)x; } +static inline UInt toUInt ( Long x ) { + x &= 0xFFFFFFFFLL; + return (UInt)x; +} /* 32/64 bit addresses. */ typedef UInt Addr32;