X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=misc%2Ftest_vm%2Finclude%2Fgeekos%2Fktypes.h;fp=misc%2Ftest_vm%2Finclude%2Fgeekos%2Fktypes.h;h=0000000000000000000000000000000000000000;hp=7c72a3b0ba8c000989fa5f2f2360919e29a07187;hb=a70930549d1b741704dd7af4e6bb0e89f6f8a519;hpb=afb634a80f946634454a5d067a92aa600227bd93 diff --git a/misc/test_vm/include/geekos/ktypes.h b/misc/test_vm/include/geekos/ktypes.h deleted file mode 100644 index 7c72a3b..0000000 --- a/misc/test_vm/include/geekos/ktypes.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Kernel data types - * Copyright (c) 2001,2003 David H. Hovemeyer - * $Revision: 1.1 $ - * - * This is free software. You are permitted to use, - * redistribute, and modify it as specified in the file "COPYING". - */ - -#ifndef GEEKOS_KTYPES_H -#define GEEKOS_KTYPES_H - -/* - * GeekOS uses the C99 bool type, with true and false - * constant values. - */ -#include - -/* - * Shorthand for commonly used integer types. - */ -typedef unsigned long ulong_t; -typedef unsigned int uint_t; -typedef unsigned short ushort_t; -typedef unsigned char uchar_t; -typedef unsigned long long ullong_t; - -/* - * MIN() and MAX() macros. - * By using gcc extensions, they are type-correct and - * evaulate their arguments only once. - */ -#define MIN(a,b) ({typeof (a) _a = (a); typeof (b) _b = (b); (_a < _b) ? _a : _b; }) -#define MAX(a,b) ({typeof (a) _a = (a); typeof (b) _b = (b); (_a < _b) ? _a : _b; }) - -/* - * Some ASCII character access and manipulation macros. - */ -#define ISDIGIT(c) ((c) >= '0' && (c) <= '9') -#define TOLOWER(c) (((c) >= 'A' && (c) <= 'Z') ? ((c) + ('a' - 'A')) : (c)) -#define TOUPPER(c) (((c) >= 'a' && (c) <= 'z') ? ((c) - ('a' - 'A')) : (c)) - -#endif /* GEEKOS_KTYPES_H */