mailing list of musl libc
 help / color / mirror / code / Atom feed
* byteswap.h
@ 2017-04-07 17:53 fab10
  2017-04-07 17:55 ` byteswap.h Jon Chesterfield
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: fab10 @ 2017-04-07 17:53 UTC (permalink / raw)
  To: musl

I had a look at byteswap.h and it seems to me that the code is not very 
efficient. Every function in this header could be translated in a single 
assembly instruction with the gcc intrinsics:

__builtin_bswap16
__builtin_bswap32
__builtin_bswap64

Is there a reason to not use these gcc intrinsics?

Bye



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

end of thread, other threads:[~2017-04-08 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 17:53 byteswap.h fab10
2017-04-07 17:55 ` byteswap.h Jon Chesterfield
2017-04-07 18:01 ` byteswap.h Rich Felker
2017-04-07 18:07 ` byteswap.h Joakim Sindholt
2017-04-08 14:57   ` byteswap.h Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).