}
/**
- * \fn void *memcpy(void *Dest, void *Src, Uint Num)
+ * \fn void *memcpy(void *Dest, const void *Src, Uint Num)
+ * \brief Copy \a Num bytes from \a Src to \a Dest
*/
void *memcpy(void *Dest, const void *Src, Uint Num)
{
return Dest;
}
/**
- * \fn void *memcpyd(void *Dest, void *Src, Uint Num)
+ * \fn void *memcpyd(void *Dest, const void *Src, Uint Num)
+ * \brief Copy \a Num DWORDs from \a Src to \a Dest
*/
void *memcpyd(void *Dest, const void *Src, Uint Num)
{
{
return ((Val&0xFF)<<8) | ((Val>>8)&0xFF);
}
+Uint32 LittleEndian32(Uint32 Val)
+{
+ return Val;
+}
+Uint32 BigEndian32(Uint32 Val)
+{
+ return ((Val&0xFF)<<24) | ((Val&0xFF00)<<8) | ((Val>>8)&0xFF00) | ((Val>>24)&0xFF);
+}
// --- EXPORTS ---
EXPORT(memcpy); EXPORT(memset);