git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/VFS - Fixed missuse of strcmp that caused userland compilations to break
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
lib.c
diff --git
a/KernelLand/Kernel/lib.c
b/KernelLand/Kernel/lib.c
index
7356d6f
..
f07e9f3
100644
(file)
--- a/
KernelLand/Kernel/lib.c
+++ b/
KernelLand/Kernel/lib.c
@@
-87,6
+87,7
@@
EXPORT(ModUtil_SetIdent);
EXPORT(UnHex);
EXPORT(SwapEndian16);
EXPORT(SwapEndian32);
EXPORT(UnHex);
EXPORT(SwapEndian16);
EXPORT(SwapEndian32);
+EXPORT(SwapEndian64);
EXPORT(memmove);
// === CODE ===
EXPORT(memmove);
// === CODE ===
@@
-1060,6
+1061,10
@@
Uint32 SwapEndian32(Uint32 Val)
{
return ((Val&0xFF)<<24) | ((Val&0xFF00)<<8) | ((Val>>8)&0xFF00) | ((Val>>24)&0xFF);
}
{
return ((Val&0xFF)<<24) | ((Val&0xFF00)<<8) | ((Val>>8)&0xFF00) | ((Val>>24)&0xFF);
}
+Uint64 SwapEndian64(Uint64 Val)
+{
+ return SwapEndian32(Val >> 32) | ((Uint64)SwapEndian32(Val) << 32);
+}
void *memmove(void *__dest, const void *__src, size_t len)
{
void *memmove(void *__dest, const void *__src, size_t len)
{
UCC
git Repository :: git.ucc.asn.au