mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-05 02:55:07 +01:00
3aa838dec9
* Added load system based on fragments This commit is made possible for Oggzee and his great work on supporting other filesystems!
26 lines
344 B
C
26 lines
344 B
C
#ifndef _UTILS_H_
|
|
#define _UTILS_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Constants */
|
|
#define KB_SIZE 1024.0
|
|
#define MB_SIZE 1048576.0
|
|
#define GB_SIZE 1073741824.0
|
|
|
|
/* Macros */
|
|
#define round_up(x,n) (-(-(x) & -(n)))
|
|
|
|
#define SAFE_FREE(P) if(P){free(P);P=NULL;}
|
|
|
|
/* Prototypes */
|
|
u32 swap32(u32);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|