Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Cleanup westmere and haswell object files (#24) Thanks @fobser
- Out of tree builds (NLnetLabs/nsd#415)
- Fix function declarations for fallback detection routine in isadetection.h.

## [0.2.0] - 2024-12-12

Expand Down
8 changes: 4 additions & 4 deletions src/isadetection.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,21 @@ enum instruction_set {

#if defined(__PPC64__)

static inline uint32_t detect_supported_architectures() {
static inline uint32_t detect_supported_architectures(void) {
return ALTIVEC;
}

#elif defined(__arm__) || defined(__aarch64__) // incl. armel, armhf, arm64

#if defined(__ARM_NEON)

static inline uint32_t detect_supported_architectures() {
static inline uint32_t detect_supported_architectures(void) {
return NEON;
}

#else // ARM without NEON

static inline uint32_t detect_supported_architectures() {
static inline uint32_t detect_supported_architectures(void) {
return DEFAULT;
}

Expand Down Expand Up @@ -260,7 +260,7 @@ static inline uint32_t detect_supported_architectures(void)
}
#else // fallback

static inline uint32_t detect_supported_architectures() {
static inline uint32_t detect_supported_architectures(void) {
return DEFAULT;
}

Expand Down