with Valgrind conventions.
git-svn-id: svn://svn.valgrind.org/vex/trunk@578
return (Short)t;
}
-static inline SChar qadd8S ( SChar xx, SChar yy )
+static inline Char qadd8S ( Char xx, Char yy )
{
Int t = ((Int)xx) + ((Int)yy);
if (t < -128) t = -128;
if (t > 127) t = 127;
- return (SChar)t;
+ return (Char)t;
}
static inline UShort qadd16U ( UShort xx, UShort yy )
return (Short)t;
}
-static inline SChar qsub8S ( SChar xx, SChar yy )
+static inline Char qsub8S ( Char xx, Char yy )
{
Int t = ((Int)xx) - ((Int)yy);
if (t < -128) t = -128;
if (t > 127) t = 127;
- return (SChar)t;
+ return (Char)t;
}
static inline UShort qsub16U ( UShort xx, UShort yy )
return xx>yy ? 0xFFFF : 0;
}
-static inline UChar cmpge8S ( SChar xx, SChar yy )
+static inline UChar cmpge8S ( Char xx, Char yy )
{
return xx>yy ? 0xFF : 0;
}
return (Short)xx;
}
-static inline SChar qnarrow16Sto8 ( UShort xx0 )
+static inline Char qnarrow16Sto8 ( UShort xx0 )
{
Short xx = (Short)xx0;
if (xx < -128) xx = -128;
if (xx > 127) xx = 127;
- return (SChar)xx;
+ return (Char)xx;
}
static inline UChar qnarrow16Uto8 ( UShort xx0 )
/* --------- Condition codes, Intel encoding. --------- */
-Char* showX86CondCode ( X86CondCode cond )
+HChar* showX86CondCode ( X86CondCode cond )
{
switch (cond) {
case Xcc_O: return "o";
}
X86CondCode;
-extern Char* showX86CondCode ( X86CondCode );
+extern HChar* showX86CondCode ( X86CondCode );
/* --------- Memory address expressions (amodes). --------- */
*vg_sprintf_ptr++ = c;
}
-UInt vex_sprintf ( Char* buf, const Char *format, ... )
+UInt vex_sprintf ( Char* buf, const HChar *format, ... )
{
Int ret;
va_list vargs;
/* Printing */
__attribute__ ((format (printf, 1, 2)))
-extern UInt vex_printf ( const Char *format, ... );
+extern UInt vex_printf ( const HChar *format, ... );
__attribute__ ((format (printf, 2, 3)))
-extern UInt vex_sprintf ( Char* buf, const Char *format, ... );
+extern UInt vex_sprintf ( Char* buf, const HChar *format, ... );
/* String ops */
/* Always 8 bits. */
typedef unsigned char UChar;
-typedef signed char SChar;
-typedef char Char; /* platform-dependent signfulness */
+typedef signed char Char;
+typedef char HChar; /* signfulness depends on host */
+ /* Only to be used for printf etc
+ format strings */
/* Always 16 bits. */
typedef unsigned short UShort;