Re: [Mono-dev] Proposed endian optimization - s390x

2015-03-11 Thread Alex Rønne Petersen
Have you checked that GCC doesn't already optimize the functions here into these instructions? If it doesn't, maybe we could write them in a way that GCC more easily recognizes. But if that's not the case, I don't see any particular reason we couldn't do this. Regards, Alex On Wed, Mar 11, 2015

[Mono-dev] Proposed endian optimization - s390x

2015-03-11 Thread Neale Ferguson
Hi, I am proposing the following changes to mono-endian.h to optimize little-endian to big-endian processing for s390x. The architecture defines instructions for just this purpose so instead of doing shifts etc. we can just do this: --- a/mono/metadata/mono-endian.h +++ b/mono/metadata/mono-endia