We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27722a commit 66749acCopy full SHA for 66749ac
1 file changed
portable/MSVC-MingW/portmacro.h
@@ -145,10 +145,12 @@ void vPortExitCritical( void );
145
: "cc" )
146
147
#else /* __GNUC__ */
148
+ #include <intrin.h>
149
150
/* BitScanReverse returns the bit position of the most significant '1'
151
* in the word. */
152
#if defined( __x86_64__ ) || defined( _M_X64 )
153
+ #pragma intrinsic(_BitScanReverse64)
154
155
#define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) \
156
do \
@@ -159,6 +161,7 @@ void vPortExitCritical( void );
159
161
} while( 0 )
160
162
163
#else /* #if defined( __x86_64__ ) || defined( _M_X64 ) */
164
+ #pragma intrinsic(_BitScanReverse)
165
166
#define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) _BitScanReverse( ( DWORD * ) &( uxTopPriority ), ( uxReadyPriorities ) )
167
0 commit comments