Skip to content

Commit

Permalink
Add avmv8 and armv8-a support.
Browse files Browse the repository at this point in the history
Patch credit to [email protected] (thanks!).
See https://code.google.com/p/cld2/issues/detail?id=34 for more information.



git-svn-id: https://cld2.googlecode.com/svn/trunk@195 b252ecd4-b096-bf77-eb8e-91563289f87e
  • Loading branch information
[email protected] committed May 27, 2015
1 parent 87b11ba commit 9cab4d1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions internal/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ namespace CLD2 {
!defined(__ARM_ARCH_6Z__) && \
!defined(__ARM_ARCH_6ZK__) && \
!defined(__ARM_ARCH_6T2__) && \
!defined(__ARM_ARCH_7__) && \
!defined(__ARM_ARCH_7A__) && \
!defined(__ARM_ARCH_7M__) && \
!defined(__ARM_ARCH_7R__)

// ARMv7 and newer support native unaligned accesses, but only of 16-bit
// and 32-bit values (not 64-bit); older versions either raise a fatal signal,
!defined(__ARM_ARCH_7__) && \
!defined(__ARM_ARCH_7A__) && \
!defined(__ARM_ARCH_7M__) && \
!defined(__ARM_ARCH_7R__) && \
!defined(__ARM_ARCH_8__) && \
!defined(__ARM_ARCH_8A__)

// ARMv7 and newer support native unaligned accesses, but only of 16-bit
// and 32-bit values (not 64-bit); older versions either raise a fatal signal,
// do an unaligned read and rotate the words around a bit, or do the reads very
// slowly (trip through kernel mode). There's no simple #define that says just
// “ARMv7 or higher”, so we have to filter away all ARMv5 and ARMv6
Expand Down

0 comments on commit 9cab4d1

Please sign in to comment.