mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* SysV.cs:
* FileSystemIDandChk.csproj: Added support for System V filesystem * MBR.cs: UnixWare is not the only one using the UNIX disklabel Corrected UNIX disklabel sector. Enhanced UNIX disklabel with structs and consts. Added support for old UNIX disklabels. * Swapping.cs: Added code for middle-endian (PDP-endian) git-svn-id: svn://claunia.com/FileSystemIDandChk@22 17725271-3d32-4980-a8cb-9ff532f270ba
This commit is contained in:
@@ -59,5 +59,15 @@ namespace FileSystemIDandChk
|
||||
|
||||
return destination;
|
||||
}
|
||||
|
||||
public static UInt32 PDPFromLittleEndian(UInt32 x)
|
||||
{
|
||||
return ((x & 0xffff) << 16) | ((x & 0xffff0000) >> 16);
|
||||
}
|
||||
|
||||
public static UInt32 PDPFromBigEndian(UInt32 x)
|
||||
{
|
||||
return ((x & 0xff00ff) << 8) | ((x & 0xff00ff00) >> 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user