Define NS_CMSIS_NN

Define Documentation

NS_CMSIS_NN

Identity macros for the ns-cmsis-nn (Ambiq) superset of CMSIS-NN.

This library is wire-compatible with upstream ARM-software/CMSIS-NN: every upstream arm_* symbol resolves here. We additionally ship Ambiq-specific kernels (e.g. arm_gather_s8, the elementwise prelu/clamp variants, …).

Downstream code that depends on Ambiq-only kernels should guard with:

#if !defined(NS_CMSIS_NN)
#  error "this code requires ns-cmsis-nn (Ambiq superset)"
#endif
#if NS_CMSIS_NN_VERSION < 7024000
#  error "needs ns-cmsis-nn >= 7.24.0"
#endif
NS_CMSIS_NN_VERSION is packed as MAJOR * 1000000 + MINOR * 1000 + PATCH (each of MINOR and PATCH gets a full 3-digit field, so semantic ordering is preserved for any reasonable version). It tracks release-please bumps automatically through the per-component macros above; no separate marker is required.