@@ -169,12 +169,13 @@ _mm_tzcnt_64(unsigned long long __X)
169
169
#if !defined(__SCE__) || __has_feature(modules) || defined(__BMI__)
170
170
171
171
/* Define the default attributes for the functions in this file. */
172
- #define __DEFAULT_FN_ATTRS __attribute__ ((__always_inline__, __nodebug__, __target__(" bmi" )))
173
-
174
172
#if defined(__cplusplus) && (__cplusplus >= 201103L)
175
- #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS constexpr
173
+ #define __DEFAULT_FN_ATTRS \
174
+ __attribute__ ((__always_inline__, __nodebug__, __target__(" bmi" ))) constexpr
175
+ constexpr
176
176
#else
177
- #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
177
+ #define __DEFAULT_FN_ATTRS \
178
+ __attribute__ ((__always_inline__, __nodebug__, __target__(" bmi" )))
178
179
#endif
179
180
180
181
// / Performs a bitwise AND of the second operand with the one's
@@ -234,7 +235,7 @@ __andn_u32(unsigned int __X, unsigned int __Y)
234
235
// / \returns An unsigned integer whose least significant bits contain the
235
236
// / extracted bits.
236
237
// / \see _bextr_u32
237
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
238
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
238
239
__bextr_u32 (unsigned int __X, unsigned int __Y) {
239
240
return __builtin_ia32_bextr_u32 (__X, __Y);
240
241
}
@@ -258,7 +259,7 @@ __bextr_u32(unsigned int __X, unsigned int __Y) {
258
259
// / \returns An unsigned integer whose least significant bits contain the
259
260
// / extracted bits.
260
261
// / \see __bextr_u32
261
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
262
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
262
263
_bextr_u32 (unsigned int __X, unsigned int __Y, unsigned int __Z) {
263
264
return __builtin_ia32_bextr_u32 (__X, ((__Y & 0xff ) | ((__Z & 0xff ) << 8 )));
264
265
}
@@ -280,7 +281,7 @@ _bextr_u32(unsigned int __X, unsigned int __Y, unsigned int __Z) {
280
281
// / \returns An unsigned integer whose least significant bits contain the
281
282
// / extracted bits.
282
283
// / \see __bextr_u32
283
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
284
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
284
285
_bextr2_u32 (unsigned int __X, unsigned int __Y) {
285
286
return __builtin_ia32_bextr_u32 (__X, __Y);
286
287
}
@@ -453,7 +454,7 @@ __andn_u64 (unsigned long long __X, unsigned long long __Y)
453
454
// / \returns An unsigned 64-bit integer whose least significant bits contain the
454
455
// / extracted bits.
455
456
// / \see _bextr_u64
456
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
457
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
457
458
__bextr_u64 (unsigned long long __X, unsigned long long __Y) {
458
459
return __builtin_ia32_bextr_u64 (__X, __Y);
459
460
}
@@ -477,7 +478,7 @@ __bextr_u64(unsigned long long __X, unsigned long long __Y) {
477
478
// / \returns An unsigned 64-bit integer whose least significant bits contain the
478
479
// / extracted bits.
479
480
// / \see __bextr_u64
480
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
481
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
481
482
_bextr_u64 (unsigned long long __X, unsigned int __Y, unsigned int __Z) {
482
483
return __builtin_ia32_bextr_u64 (__X, ((__Y & 0xff ) | ((__Z & 0xff ) << 8 )));
483
484
}
@@ -499,7 +500,7 @@ _bextr_u64(unsigned long long __X, unsigned int __Y, unsigned int __Z) {
499
500
// / \returns An unsigned 64-bit integer whose least significant bits contain the
500
501
// / extracted bits.
501
502
// / \see __bextr_u64
502
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
503
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
503
504
_bextr2_u64 (unsigned long long __X, unsigned long long __Y) {
504
505
return __builtin_ia32_bextr_u64 (__X, __Y);
505
506
}
@@ -615,7 +616,6 @@ __blsr_u64(unsigned long long __X)
615
616
#endif /* __x86_64__ */
616
617
617
618
#undef __DEFAULT_FN_ATTRS
618
- #undef __DEFAULT_FN_ATTRS_CONSTEXPR
619
619
620
620
#endif /* !defined(__SCE__) || __has_feature(modules) || defined(__BMI__) */
621
621
0 commit comments