[Numpy-discussion] Request for review: dynamic_cpu_branch
Mon Dec 22 23:35:58 CST 2008
On Mon, Dec 22, 2008 at 23:15, David Cournapeau
> Charles R Harris wrote:
>> Hi David,
>> On Mon, Dec 22, 2008 at 10:15 PM, Charles R Harris
>> <firstname.lastname@example.org <mailto:email@example.com>> wrote:
>> It's pretty easy to determine byte order at run time. Maybe another
>> configuration test is in order...
> Yes, but that's not enough, since some macro defined in the header uses
> the endianness, and thus are hardcoded. If we could remove those macro,
> then it is definitely a better solution.
I think he meant that it can be discovered at runtime in general, not
at numpy-run-time, so we can write a small C program that can be run
at numpy-build-time to add another entry to config.h.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion