Menu

#79 Fix endianness detection on 64-bit PowerPC

developer
closed-accepted
None
5
2017-08-25
2017-08-16
No

ATLAS incorrectly detects big-endian 64-bit PowerPC platforms as being little endian.

The reason is that it tests whether the macro ORDER_LITTLE_ENDIAN is defined in CONFIG/src/SpewMakeInc.c. But this macro is defined even on big-endian systems. The right tests is to check whether BYTE_ORDER == ORDER_LITTLE_ENDIAN (at least with GCC).

I attach a patch for ATLAS 3.10.3 that is applied to the Debian package. It is straightforward to adapt it for ATLAS 3.11 branch, where two instances of the same test need to be fixed.

1 Attachments

Discussion

  • R. Clint Whaley

    R. Clint Whaley - 2017-08-25
    • status: open --> closed-accepted
    • assigned_to: R. Clint Whaley
     
  • R. Clint Whaley

    R. Clint Whaley - 2017-08-25

    Applied in basefiles, should be fixed for 3.10.4.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.