
6 Sep
2011
6 Sep
'11
1:42 p.m.
On Tue, Sep 6, 2011 at 8:44 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
On 06/09/2011 00:38, Phil Endecott wrote:
#elif defined(USE_BEMAN)
const char* s (reinterpret_cast<const char*>(&src)); uint32_t target; char * t (reinterpret_cast<char*>(&target) + sizeof(target) - 1); *t = *s; *--t = *++s; *--t = *++s; *--t = *++s; return target;
Why isn't that just std::reverse?
Good question. I don't really know the answer, but it may just be a legacy of very old code that predates the availability of std::reverse. --Beman