| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/27827/root/usr/include/orbit-2.0/orbit/util/ |
Upload File : |
#ifndef ORBIT_UTIL_H #define ORBIT_UTIL_H 1 #include <glib.h> #include <orbit/orbit-config.h> #include <orbit/util/basic_types.h> #include <orbit/util/orbit-genrand.h> G_BEGIN_DECLS /* Align a value upward to a boundary, expressed as a number of bytes. E.g. align to an 8-byte boundary with argument of 8. */ /* * (this + boundary - 1) * & * ~(boundary - 1) */ #define ALIGN_VALUE(this, boundary) \ (( ((gulong)(this)) + (((gulong)(boundary)) -1)) & (~(((gulong)(boundary))-1))) #define ALIGN_ADDRESS(this, boundary) \ ((gpointer)ALIGN_VALUE(this, boundary)) #ifdef ORBIT2_INTERNAL_API gulong ORBit_wchar_strlen(CORBA_wchar *wstr); #define num2hexdigit(n) (((n)>9)?((n)+'a'-10):((n)+'0')) #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif