[parted-devel] Regarding little and big endian support

James Courtier-Dutton James at superbug.co.uk
Sat Jan 5 17:24:35 UTC 2008


James Courtier-Dutton wrote:
> xerces8 wrote:
>> "Avinash Malik" <avimalik at gmail.com> wrote:
>>
>>  
>>> #ifdef __LITTLE_ENDIAN
>>> sblock.fs_version = PED_CPU_TO_LE32(fs_verison)
>>> #endif
>>> #ifdef __BIG_ENDIAN
>>> sblock.fs_version = PED_CPU_TO_BE32(fs_version)
>>> #endif
>>>     
>>
>> This is the same as simply : sblock.fs_version = fs_version;
>>   
> No it is not.

Oops, my mistake.




More information about the parted-devel mailing list