Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

misc.h

Go to the documentation of this file.
00001 #ifndef MISC_H
00002 #define MISC_H
00003 
00004 
00008 inline unsigned SwapShort(const unsigned &i)
00009 {
00010   return ((i << 8) & 0xff00) |
00011          ((i >> 8) & 0x00ff);
00012 }
00013 
00017 inline unsigned long  SwapLong(const unsigned long &i)
00018 {
00019   return ((i << 24) & 0xff000000L) |
00020          ((i <<  8) & 0x00ff0000L) |
00021          ((i >>  8) & 0x0000ff00L) |
00022          ((i >> 24) & 0x000000ffL);
00023 }
00024 
00029 static inline void swap(int &a, int &b)
00030 {
00031   int t=a;
00032   a=b; b=t;
00033 }
00034 
00035 
00036 extern void  SYS_SetSTDIOFocus(int focus);
00037 extern char *ProgressBar(float v, float min, float max);
00038 extern void  HexDump(void *mem, unsigned length);
00039 extern void *loadfile(char *fn, unsigned *len);
00040 
00041 #endif

Generated on Sun Aug 4 21:47:28 2002 for k/os mp3v2 by doxygen1.2.16