flDefines.h

Go to the documentation of this file.
00001 #ifndef FLDEFINES_H
00002 #define FLDEFINES_H
00003 
00004 #define max(x, y) ((x) > (y) ? (x) : (y))
00005 #define min(x, y) ((x) < (y) ? (x) : (y))
00006 #define pos(x) ((x) < (0) ? (0 - (x)) : (x))
00007 #define cmp(inType, inVal0, inVal1) (memcmp((inVal0), (inVal1), sizeof(inType)))
00008 
00009 #define LOGICAL_XOR(inExpr0, inExpr1) (((inExpr0) || (inExpr1)) && !((inExpr0) && (inExpr1)))
00010 
00011 #define SCREEN_WIDTH    480
00012 #define SCREEN_HEIGHT   272
00013 #define SCREEN_PITCH    512
00014 #define SCREEN_STRIDE   SCREEN_PITCH
00015 #define SCREEN_LINESIZE SCREEN_PITCH
00016 #define SCREEN_GAMMA    2.5f
00017 
00018 #define ASCII_NULL           0
00019 #define ASCII_BELL           7
00020 #define ASCII_AUDIBLE_BELL   ASCII_BELL
00021 #define ASCII_AUDIBLEBELL    ASCII_BELL
00022 #define ASCII_BS             8
00023 #define ASCII_BACKSPACE      ASCII_BS
00024 #define ASCII_TAB            9
00025 #define ASCII_LF             10
00026 #define ASCII_LINEFEED       ASCII_LF
00027 #define ASCII_CR             13
00028 #define ASCII_CARRIAGERETURN ASCII_CR
00029 #define ASCII_SHIFT_OUT      14
00030 #define ASCII_SHIFT_IN       15
00031 #define ASCII_SPACE          32
00032 #define ASCII_DEL            127
00033 #define ASCII_DELETE         ASCII_DEL
00034 
00035 #define ASCII_A 'A'
00036 #define ASCII_Z 'Z'
00037 #define ASCII_a 'a'
00038 #define ASCII_z 'z'
00039 #define ASCII_0 '0'
00040 #define ASCII_9 '9'
00041 
00042 #define ASCII_MULTIPLY 158
00043 
00044 #define MATH_PI          3.14159265358979323846264338327950288f
00045 #define MATH_E           2.71828182845904523536028747135266249f
00046 #define MATH_GOLDENRATIO 1.61803398874989484820458683436563811f
00047 
00048 // Fixes for macros that should exist in the psp sdk
00049 #define GU_SYNC_WAIT 0
00050 #define GU_SYNC_NOWAIT 1
00051 
00052 
00053 
00054 // Add extra compatability for other compilers
00055 #ifndef __cplusplus
00056      #ifdef _LANGUAGE_C_PLUS_PLUS
00057           #define __cplusplus
00058      #endif
00059      #ifdef c_plusplus
00060           #define __cplusplus
00061      #endif
00062 #endif
00063 
00064 #endif

Generated on Wed Sep 5 19:04:00 2007 for funcLib by  doxygen 1.5.1