Skip to content

Commit

Permalink
Corrected issue #146
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Jan 11, 2024
1 parent 4acfef7 commit 647b755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Include/arm_math_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extern "C"
#endif
#endif

#if (__ARM_FEATURE_MVE & 2)
#if defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE & 2)
#if !defined(ARM_MATH_MVEF)
#define ARM_MATH_MVEF
#endif
Expand Down
8 changes: 4 additions & 4 deletions Include/arm_math_types_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ If it is not available, f16 version of the kernels
won't be built.
*/
#if !(__ARM_FEATURE_MVE & 2)
#if defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE & 2)
/* When Vector float16, this flag is always defined and can't be disabled */
#define ARM_FLOAT16_SUPPORTED
#else
#if !defined(DISABLEFLOAT16)
#if defined(__ARM_FP16_FORMAT_IEEE) || defined(__ARM_FP16_FORMAT_ALTERNATIVE)
typedef __fp16 float16_t;
#define ARM_FLOAT16_SUPPORTED
#endif
#endif
#else
/* When Vector float16, this flag is always defined and can't be disabled */
#define ARM_FLOAT16_SUPPORTED
#endif

#if defined(ARM_MATH_NEON) || (defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE)) /* floating point vector*/
Expand Down

0 comments on commit 647b755

Please sign in to comment.