Skip to content

Fails to build on 32 bit arm #39

Description

@clausecker

The project fails to build on 32-bit arm (i.e. armv7) due to the use of NEON intrinsic vmaxvq_u8 available on aarch64 only.

I have for the FreeBSD ports collection added a site patch that replaces this intrinsic with some polyfill, permitting a build on armv7 to succeed: https://cgit.freebsd.org/ports/commit/?id=a002d848b52bda537a6d0a90da4616001303f80b

Please note that for better performance, it might be a good idea to replace vmaxvq_u8 with vmaxvq_u32, which delivers the same outcome, but at better performance. For example, on the Cortex X1 core, vmaxvq_u8 issues at 1 per cycle with a 4 cycle latency, whereas vmaxvq_u32 issues at 2 per cycle with a 2 cycle latency (that's 4 times fewer resources used).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions