Skip to content
Open
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
10 changes: 9 additions & 1 deletion Drivers/CMSIS/Core/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -903,13 +903,21 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
#define __RBIT __builtin_arm_rbit

/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll


#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
(defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
Expand Down
10 changes: 9 additions & 1 deletion Drivers/CMSIS/Core/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,21 @@ __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)


/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll


#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
(defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
Expand Down
13 changes: 11 additions & 2 deletions Drivers/CMSIS/Core_A/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,20 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
#define __RBIT __builtin_arm_rbit

/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll

/**
\brief LDR Exclusive (8 bit)
Expand Down
13 changes: 11 additions & 2 deletions Drivers/CMSIS/Core_A/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,20 @@ __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
}

/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll

/**
\brief LDR Exclusive (8 bit)
Expand Down
10 changes: 9 additions & 1 deletion Drivers/CMSIS/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -903,13 +903,21 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
#define __RBIT __builtin_arm_rbit

/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll


#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
(defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
Expand Down
10 changes: 9 additions & 1 deletion Drivers/CMSIS/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,21 @@ __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)


/**
\brief Count leading zeros
\brief Count leading zeros for the unsigned int type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZ (uint8_t)__builtin_clz

/**
\brief Count leading zeros for the unsigned long long type.
\details Counts the number of leading zeros of a data value.
\param [in] value Value to count the leading zeros
\return number of leading zeros in value
*/
#define __CLZLL (uint8_t)__builtin_clzll


#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
(defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
Expand Down