mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
5b2f453d9e
*restructured game settings for different types of games (Wii/GC/Channels) *added uninstall option for emu nand channels and game cube games (iso only) *add display of game size from wii disc games on game prompt *add game size display for game cube games (iso only) *force interlace mode on GC games except when explicitly used FORCE 480p PAL/NTSC *removed mountMethod global variable which was annoying me very much *some source cleanup
23 lines
593 B
C
23 lines
593 B
C
#ifndef TOOLS_H_
|
|
#define TOOLS_H_
|
|
|
|
/* Constants */
|
|
#define KB_SIZE 1024.0f
|
|
#define MB_SIZE 1048576.0f
|
|
#define GB_SIZE 1073741824.0f
|
|
|
|
#define round_up(x,n) (-(-(x) & -(n)))
|
|
|
|
#define ABS(x) ( (x) >= (0) ? (x) : (-(x)) )
|
|
#define LIMIT(x, min, max) \
|
|
({ \
|
|
typeof( x ) _x = x; \
|
|
typeof( min ) _min = min; \
|
|
typeof( max ) _max = max; \
|
|
( ( ( _x ) < ( _min ) ) ? ( _min ) : ( ( _x ) > ( _max ) ) ? ( _max) : ( _x ) ); \
|
|
})
|
|
#define ALIGN(x) (((x) + 3) & ~3)
|
|
#define ALIGN32(x) (((x) + 31) & ~31)
|
|
|
|
#endif
|