Date: Fri, 7 Apr 2017 18:55:33 +0100 From: Jon Chesterfield <jonathanchesterfield@...il.com> To: musl@...ts.openwall.com Subject: Re: byteswap.h Have you tested whether the intrinsics improve codegen on a recent compiler? There's a good chance they make the code non-portable while generating the same asm. Jon On 7 Apr 2017 18:53, "fab10" <0xfab10@...il.com> wrote: 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 Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.