Oops. Thanks w3seek

svn path=/trunk/; revision=16007
This commit is contained in:
Alex Ionescu
2005-06-17 17:59:11 +00:00
parent 0a48555ba9
commit 4b08e9770a
+11
View File
@@ -41,6 +41,17 @@
#define CHECKPOINT1(args...)
#endif
/* Macros expanding to the appropriate inline assembly to raise a breakpoint */
#if defined(_M_IX86)
#define ASM_BREAKPOINT "\nint $3\n"
#elif defined(_M_ALPHA)
#define ASM_BREAKPOINT "\ncall_pal bpt\n"
#elif defined(_M_MIPS)
#define ASM_BREAKPOINT "\nbreak\n"
#else
#error Unsupported architecture.
#endif
#define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
#define ROUNDDOWN(a,b) (((a)/(b))*(b))