public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* LDM code query
@ 2004-04-15  5:08 Nasir Hossain
  2004-04-15  8:08 ` Anton Altaparmakov
  0 siblings, 1 reply; 2+ messages in thread
From: Nasir Hossain @ 2004-04-15  5:08 UTC (permalink / raw)
  To: Linux-Kernel

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LDM code query
  2004-04-15  5:08 LDM code query Nasir Hossain
@ 2004-04-15  8:08 ` Anton Altaparmakov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Altaparmakov @ 2004-04-15  8:08 UTC (permalink / raw)
  To: Nasir Hossain; +Cc: Linux-Kernel

On Thu, 15 Apr 2004, Nasir Hossain wrote:
> 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
-- 
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-15  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15  5:08 LDM code query Nasir Hossain
2004-04-15  8:08 ` Anton Altaparmakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox