File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -145,22 +145,25 @@ void vPortExitCritical( void );
145
145
: "cc" )
146
146
147
147
#else /* __GNUC__ */
148
+ #include <intrin.h>
148
149
149
150
/* BitScanReverse returns the bit position of the most significant '1'
150
151
* in the word. */
151
152
#if defined( __x86_64__ ) || defined( _M_X64 )
153
+ #pragma intrinsic(_BitScanReverse64)
152
154
153
155
#define portGET_HIGHEST_PRIORITY ( uxTopPriority , uxReadyPriorities ) \
154
156
do \
155
157
{ \
156
- DWORD ulTopPriority; \
158
+ unsigned long ulTopPriority; \
157
159
_BitScanReverse64( &ulTopPriority, ( uxReadyPriorities ) ); \
158
160
uxTopPriority = ulTopPriority; \
159
161
} while( 0 )
160
162
161
163
#else /* #if defined( __x86_64__ ) || defined( _M_X64 ) */
164
+ #pragma intrinsic(_BitScanReverse)
162
165
163
- #define portGET_HIGHEST_PRIORITY ( uxTopPriority , uxReadyPriorities ) _BitScanReverse( ( DWORD * ) &( uxTopPriority ), ( uxReadyPriorities ) )
166
+ #define portGET_HIGHEST_PRIORITY ( uxTopPriority , uxReadyPriorities ) _BitScanReverse( ( unsigned long * ) &( uxTopPriority ), ( uxReadyPriorities ) )
164
167
165
168
#endif /* #if defined( __x86_64__ ) || defined( _M_X64 ) */
166
169
You can’t perform that action at this time.
0 commit comments