LDM code query
hi,
can someone tell me what this macro does :
__be64_to_cpu()__be32_to_cpu()__be16_to_cpu()
something to do with big endian (i guess).
found this while going thru the ldmutil (LDM) code.
thanks
Quoted 9 lines · Nasir Hossain
can someone tell me what this macro does :
__be64_to_cpu()__be32_to_cpu()__be16_to_cpu()something to do with big endian (i guess).
found this while going thru the ldmutil (LDM) code.
You guess correctly. These macros convert big endian numbers to cpu format, just like the __leXX_to_cpu() convert little endian to cpu format.
Best regards,
Anton
Signature · 4 lines
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/