linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Little Endian to Big Endian
@ 2001-02-09 23:38 Naushit Sakarvadia
  0 siblings, 0 replies; 2+ messages in thread
From: Naushit Sakarvadia @ 2001-02-09 23:38 UTC (permalink / raw)
  To: Linux PPC embedded mailing group


Hello,

I am in need to write most efficint little endian to big endian
conversion function.
I know it can be done best in assembly with one instruction. can
somebody tell me what instruction will do that?

if possible if you can write small assebly fuction for me then it would
be great because I dont know anything in Powerpc assembly nor I have
some sample code to follow..

Thanks
Regards,
Naushit


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: Little Endian to Big Endian
@ 2001-02-11  1:25 BOAS
  0 siblings, 0 replies; 2+ messages in thread
From: BOAS @ 2001-02-11  1:25 UTC (permalink / raw)
  To: linuxppc-embedded


Naushit,

>I am in need to write most efficint little endian
>to big endian conversion function.
>I know it can be done best in assembly with one instruction.
>can somebody tell me what instruction will do that?

Maybe you want to got to linux/inlcude/asm-ppc/byteorder.h
in the kernel source and take a loot at the __arch__swab

Boas Betzler, IBM Linux Technology Center
embedded Linux


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-02-11  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-09 23:38 Little Endian to Big Endian Naushit Sakarvadia
  -- strict thread matches above, loose matches on Subject: below --
2001-02-11  1:25 BOAS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).