mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-05 05:15:53 +00:00
hecl/hecl: Amend lingering formatting inconsistencies
Amends formatting issues that were pre-existing to get them out of the way.
This commit is contained in:
parent
485782e3a7
commit
b63d848846
@ -591,7 +591,8 @@ public:
|
|||||||
return SystemString(beginIt, absPathForward.cend());
|
return SystemString(beginIt, absPathForward.cend());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LogModule.report(logvisor::Fatal, fmt(_SYS_STR("unable to resolve '{}' as project relative '{}'")), absPath, m_projRoot);
|
LogModule.report(logvisor::Fatal, fmt(_SYS_STR("unable to resolve '{}' as project relative '{}'")), absPath,
|
||||||
|
m_projRoot);
|
||||||
return SystemString();
|
return SystemString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1209,13 +1210,25 @@ constexpr uint32_t SBig(uint32_t val) { return bswap32(val); }
|
|||||||
constexpr int64_t SBig(int64_t val) { return bswap64(val); }
|
constexpr int64_t SBig(int64_t val) { return bswap64(val); }
|
||||||
constexpr uint64_t SBig(uint64_t val) { return bswap64(val); }
|
constexpr uint64_t SBig(uint64_t val) { return bswap64(val); }
|
||||||
constexpr float SBig(float val) {
|
constexpr float SBig(float val) {
|
||||||
union { float f; atInt32 i; } uval1 = {val};
|
union {
|
||||||
union { atInt32 i; float f; } uval2 = {bswap32(uval1.i)};
|
float f;
|
||||||
|
atInt32 i;
|
||||||
|
} uval1 = {val};
|
||||||
|
union {
|
||||||
|
atInt32 i;
|
||||||
|
float f;
|
||||||
|
} uval2 = {bswap32(uval1.i)};
|
||||||
return uval2.f;
|
return uval2.f;
|
||||||
}
|
}
|
||||||
constexpr double SBig(double val) {
|
constexpr double SBig(double val) {
|
||||||
union { double f; atInt64 i; } uval1 = {val};
|
union {
|
||||||
union { atInt64 i; double f; } uval2 = {bswap64(uval1.i)};
|
double f;
|
||||||
|
atInt64 i;
|
||||||
|
} uval1 = {val};
|
||||||
|
union {
|
||||||
|
atInt64 i;
|
||||||
|
double f;
|
||||||
|
} uval2 = {bswap64(uval1.i)};
|
||||||
return uval2.f;
|
return uval2.f;
|
||||||
}
|
}
|
||||||
#ifndef SBIG
|
#ifndef SBIG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user