Menu

#369 Add more Unix support from Debian Linux packaging

open
nobody
patch (7)
5
2021-11-06
2021-10-18
yokota
No

Discussion

  • Igor Pavlov

    Igor Pavlov - 2021-10-18

    about C/7zCrc.c

    +  #elif ( (defined(__clang__) && (__clang_major__ >= 3)) ||     \
    +          (defined(__GNUC__)  && (__GNUC__ > 4)        )    ) && \
    +        (__ARM_ARCH >= 8)
    

    The main idea in that 7-zip's code was that we compile whole code with low __ARM_ARCH, and use
    __target__("arch=armv8-a+crc") for some functions.
    Then we detect CRC feature via hwcap at runtime.
    So we can get single binary that will work on old and new processors, And it will use hardware CRC of new processors.
    We want to get single executable that links to special "new-ISA" functions at runtime.

     
  • yokota

    yokota - 2021-10-19

    OK, so patch 0012 must be a Debian specific one.
    You can drop this patch.

    I will try to make more better fix in next time.

     
  • yokota

    yokota - 2021-11-04

    Hi Igor,

    Thanks to appling my patch.
    I make some fixup patch to 7-Zip 21.04.
    Please apply it.

     
  • Igor Pavlov

    Igor Pavlov - 2021-11-05

    why we can't use getauxval(AT_HWCAP) ?

     

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.