@@ -169,12 +169,13 @@ _mm_tzcnt_64(unsigned long long __X)
169169#if !defined(__SCE__) || __has_feature(modules) || defined(__BMI__)
170170
171171/* Define the default attributes for the functions in this file. */
172- #define __DEFAULT_FN_ATTRS __attribute__ ((__always_inline__, __nodebug__, __target__(" bmi" )))
173-
174172#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
176176#else
177- #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
177+ #define __DEFAULT_FN_ATTRS \
178+ __attribute__ ((__always_inline__, __nodebug__, __target__(" bmi" )))
178179#endif
179180
180181// / Performs a bitwise AND of the second operand with the one's
@@ -234,7 +235,7 @@ __andn_u32(unsigned int __X, unsigned int __Y)
234235// / \returns An unsigned integer whose least significant bits contain the
235236// / extracted bits.
236237// / \see _bextr_u32
237- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
238+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
238239__bextr_u32 (unsigned int __X, unsigned int __Y) {
239240 return __builtin_ia32_bextr_u32 (__X, __Y);
240241}
@@ -258,7 +259,7 @@ __bextr_u32(unsigned int __X, unsigned int __Y) {
258259// / \returns An unsigned integer whose least significant bits contain the
259260// / extracted bits.
260261// / \see __bextr_u32
261- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
262+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
262263_bextr_u32 (unsigned int __X, unsigned int __Y, unsigned int __Z) {
263264 return __builtin_ia32_bextr_u32 (__X, ((__Y & 0xff ) | ((__Z & 0xff ) << 8 )));
264265}
@@ -280,7 +281,7 @@ _bextr_u32(unsigned int __X, unsigned int __Y, unsigned int __Z) {
280281// / \returns An unsigned integer whose least significant bits contain the
281282// / extracted bits.
282283// / \see __bextr_u32
283- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
284+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
284285_bextr2_u32 (unsigned int __X, unsigned int __Y) {
285286 return __builtin_ia32_bextr_u32 (__X, __Y);
286287}
@@ -453,7 +454,7 @@ __andn_u64 (unsigned long long __X, unsigned long long __Y)
453454// / \returns An unsigned 64-bit integer whose least significant bits contain the
454455// / extracted bits.
455456// / \see _bextr_u64
456- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
457+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
457458__bextr_u64 (unsigned long long __X, unsigned long long __Y) {
458459 return __builtin_ia32_bextr_u64 (__X, __Y);
459460}
@@ -477,7 +478,7 @@ __bextr_u64(unsigned long long __X, unsigned long long __Y) {
477478// / \returns An unsigned 64-bit integer whose least significant bits contain the
478479// / extracted bits.
479480// / \see __bextr_u64
480- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
481+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
481482_bextr_u64 (unsigned long long __X, unsigned int __Y, unsigned int __Z) {
482483 return __builtin_ia32_bextr_u64 (__X, ((__Y & 0xff ) | ((__Z & 0xff ) << 8 )));
483484}
@@ -499,7 +500,7 @@ _bextr_u64(unsigned long long __X, unsigned int __Y, unsigned int __Z) {
499500// / \returns An unsigned 64-bit integer whose least significant bits contain the
500501// / extracted bits.
501502// / \see __bextr_u64
502- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
503+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
503504_bextr2_u64 (unsigned long long __X, unsigned long long __Y) {
504505 return __builtin_ia32_bextr_u64 (__X, __Y);
505506}
@@ -615,7 +616,6 @@ __blsr_u64(unsigned long long __X)
615616#endif /* __x86_64__ */
616617
617618#undef __DEFAULT_FN_ATTRS
618- #undef __DEFAULT_FN_ATTRS_CONSTEXPR
619619
620620#endif /* !defined(__SCE__) || __has_feature(modules) || defined(__BMI__) */
621621
0 commit comments