File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -572,32 +572,6 @@ extern "C"
572
572
(((q63_t ) (x >> 32 ) * y )));
573
573
}
574
574
575
- /*
576
- #if defined (ARM_MATH_CM0_FAMILY) && defined ( __CC_ARM )
577
- #define __CLZ __clz
578
- #endif
579
- */
580
- /* note: function can be removed when all toolchain support __CLZ for Cortex-M0 */
581
- #if defined (ARM_MATH_CM0_FAMILY ) && ((defined (__ICCARM__ )) )
582
- CMSIS_INLINE __STATIC_INLINE uint32_t __CLZ (
583
- q31_t data );
584
-
585
- CMSIS_INLINE __STATIC_INLINE uint32_t __CLZ (
586
- q31_t data )
587
- {
588
- uint32_t count = 0 ;
589
- uint32_t mask = 0x80000000 ;
590
-
591
- while ((data & mask ) == 0 )
592
- {
593
- count += 1u ;
594
- mask = mask >> 1u ;
595
- }
596
-
597
- return (count );
598
- }
599
- #endif
600
-
601
575
/**
602
576
* @brief Function to Calculates 1/in (reciprocal) value of Q31 Data type.
603
577
*/
@@ -704,7 +678,7 @@ extern "C"
704
678
/*
705
679
* @brief C custom defined intrinisic function for only M0 processors
706
680
*/
707
- #if defined(ARM_MATH_CM0_FAMILY )
681
+ #if defined(ARM_MATH_CM0_FAMILY ) && !defined ( __ICCARM__ )
708
682
CMSIS_INLINE __STATIC_INLINE q31_t __SSAT (
709
683
q31_t x ,
710
684
uint32_t y )
You can’t perform that action at this time.
0 commit comments