Skip to content

Commit dc9658a

Browse files
mniestrojcarlescufi
authored andcommitted
Core-A: Import CMSIS-Core(A) 1.3.2 (CMSIS 5.9.0)
This commit imports the CMSIS-Core(A) 1.3.2, which is part of the CMSIS 5.9.0 release. Origin: CMSIS_5 License: Apache-2.0 URL: https://github.com/ARM-software/CMSIS_5/tree/5.9.0 commit: 2b7495b8535bdcb306dac29b9ded4cfb679d7e5c Purpose: Provide a hardware interface to the Arm Cortex-A architecture Maintained-by: External Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 404e181 commit dc9658a

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

CMSIS/Core_A/Include/cmsis_gcc.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**************************************************************************//**
22
* @file cmsis_gcc.h
33
* @brief CMSIS compiler specific macros, functions, instructions
4-
* @version V1.3.1
5-
* @date 05. May 2021
4+
* @version V1.3.2
5+
* @date 24. March 2022
66
******************************************************************************/
77
/*
8-
* Copyright (c) 2009-2021 Arm Limited. All rights reserved.
8+
* Copyright (c) 2009-2022 Arm Limited. All rights reserved.
99
*
1010
* SPDX-License-Identifier: Apache-2.0
1111
*
@@ -459,23 +459,7 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
459459
__STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
460460
{
461461
uint32_t result;
462-
463-
#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
464-
(defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
465-
(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
466462
__ASM ("rbit %0, %1" : "=r" (result) : "r" (value) );
467-
#else
468-
int32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */
469-
470-
result = value; /* r will be reversed bits of v; first get LSB of v */
471-
for (value >>= 1U; value; value >>= 1U)
472-
{
473-
result <<= 1U;
474-
result |= value & 1U;
475-
s--;
476-
}
477-
result <<= s; /* shift when v's highest bits are zero */
478-
#endif
479463
return result;
480464
}
481465

0 commit comments

Comments
 (0)