mirror of
https://github.com/libAthena/athena.git
synced 2025-12-10 14:07:44 +00:00
* Fix Wii/GC Compiling
* Initial FileInfo/Dir APIs * Get rid of type punning warnings
This commit is contained in:
@@ -75,13 +75,13 @@ inline atInt64 swap64 (atInt64 val)
|
||||
inline atUint64 swapU64(atUint64 val) {return (atUint64)swap64(val);}
|
||||
inline float swapFloat(float val)
|
||||
{
|
||||
atInt32 ival = swap32(*((atInt32*)(&val)));
|
||||
return *((float*)(&ival));
|
||||
atInt32 ival = swap64(static_cast<atInt32>(val));
|
||||
return static_cast<float>(ival);
|
||||
}
|
||||
inline double swapDouble(double val)
|
||||
{
|
||||
atInt64 ival = swap64(*((atInt64*)(&val)));
|
||||
return *((double*)(&ival));
|
||||
atInt64 ival = swap64(static_cast<atInt64>(val));
|
||||
return static_cast<double>(ival);
|
||||
}
|
||||
inline atInt16 LittleInt16(atInt16& val)
|
||||
{
|
||||
@@ -205,6 +205,7 @@ inline double BigDouble(double& val)
|
||||
|
||||
void fillRandom(atUint8 * rndArea, atUint64 count);
|
||||
std::vector<std::string> split(const std::string &s, char delim);
|
||||
atUint64 rand64();
|
||||
std::string join(const std::vector<std::string>& elems, const std::string& delims);
|
||||
void tolower(std::string& str);
|
||||
void toupper(std::string& str);
|
||||
|
||||
Reference in New Issue
Block a user