26
26
#define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
27
27
#endif
28
28
29
- // / Find the first set bit starting from the lsb. Result is undefined if
30
- // / input is 0.
29
+ // / Finds the first set bit starting from the least significant bit. The result
30
+ // / is undefined if the input is 0.
31
31
// /
32
32
// / \headerfile <x86intrin.h>
33
33
// /
@@ -43,8 +43,8 @@ __bsfd(int __A) {
43
43
return __builtin_ctz ((unsigned int )__A);
44
44
}
45
45
46
- // / Find the first set bit starting from the msb. Result is undefined if
47
- // / input is 0.
46
+ // / Finds the first set bit starting from the most significant bit. The result
47
+ // / is undefined if the input is 0.
48
48
// /
49
49
// / \headerfile <x86intrin.h>
50
50
// /
@@ -90,8 +90,8 @@ _bswap(int __A) {
90
90
return (int )__builtin_bswap32 ((unsigned int )__A);
91
91
}
92
92
93
- // / Find the first set bit starting from the lsb. Result is undefined if
94
- // / input is 0.
93
+ // / Finds the first set bit starting from the least significant bit. The result
94
+ // / is undefined if the input is 0.
95
95
// /
96
96
// / \headerfile <x86intrin.h>
97
97
// /
@@ -108,8 +108,8 @@ _bswap(int __A) {
108
108
// / \see __bsfd
109
109
#define _bit_scan_forward (A ) __bsfd((A))
110
110
111
- // / Find the first set bit starting from the msb. Result is undefined if
112
- // / input is 0.
111
+ // / Finds the first set bit starting from the most significant bit. The result
112
+ // / is undefined if the input is 0.
113
113
// /
114
114
// / \headerfile <x86intrin.h>
115
115
// /
@@ -127,8 +127,8 @@ _bswap(int __A) {
127
127
#define _bit_scan_reverse (A ) __bsrd((A))
128
128
129
129
#ifdef __x86_64__
130
- // / Find the first set bit starting from the lsb. Result is undefined if
131
- // / input is 0.
130
+ // / Finds the first set bit starting from the least significant bit. The result
131
+ // / is undefined if the input is 0.
132
132
// /
133
133
// / \headerfile <x86intrin.h>
134
134
// /
@@ -143,8 +143,8 @@ __bsfq(long long __A) {
143
143
return (long long )__builtin_ctzll ((unsigned long long )__A);
144
144
}
145
145
146
- // / Find the first set bit starting from the msb. Result is undefined if
147
- // / input is 0.
146
+ // / Finds the first set bit starting from the most significant bit. The result
147
+ // / is undefined if input is 0.
148
148
// /
149
149
// / \headerfile <x86intrin.h>
150
150
// /
@@ -159,7 +159,7 @@ __bsrq(long long __A) {
159
159
return 63 - __builtin_clzll ((unsigned long long )__A);
160
160
}
161
161
162
- // / Swaps the bytes in the input. Converting little endian to big endian or
162
+ // / Swaps the bytes in the input, converting little endian to big endian or
163
163
// / vice versa.
164
164
// /
165
165
// / \headerfile <x86intrin.h>
@@ -175,7 +175,7 @@ __bswapq(long long __A) {
175
175
return (long long )__builtin_bswap64 ((unsigned long long )__A);
176
176
}
177
177
178
- // / Swaps the bytes in the input. Converting little endian to big endian or
178
+ // / Swaps the bytes in the input, converting little endian to big endian or
179
179
// / vice versa.
180
180
// /
181
181
// / \headerfile <x86intrin.h>
@@ -198,7 +198,7 @@ __bswapq(long long __A) {
198
198
// / \headerfile <x86intrin.h>
199
199
// /
200
200
// / This intrinsic corresponds to the \c POPCNT instruction or a
201
- // / a sequence of arithmetic and logic ops to calculate it.
201
+ // / sequence of arithmetic and logic operations to calculate it.
202
202
// /
203
203
// / \param __A
204
204
// / An unsigned 32-bit integer operand.
@@ -220,7 +220,7 @@ __popcntd(unsigned int __A)
220
220
// / \endcode
221
221
// /
222
222
// / This intrinsic corresponds to the \c POPCNT instruction or a
223
- // / a sequence of arithmetic and logic ops to calculate it.
223
+ // / sequence of arithmetic and logic operations to calculate it.
224
224
// /
225
225
// / \param A
226
226
// / An unsigned 32-bit integer operand.
@@ -235,7 +235,7 @@ __popcntd(unsigned int __A)
235
235
// / \headerfile <x86intrin.h>
236
236
// /
237
237
// / This intrinsic corresponds to the \c POPCNT instruction or a
238
- // / a sequence of arithmetic and logic ops to calculate it.
238
+ // / sequence of arithmetic and logic operations to calculate it.
239
239
// /
240
240
// / \param __A
241
241
// / An unsigned 64-bit integer operand.
@@ -257,7 +257,7 @@ __popcntq(unsigned long long __A)
257
257
// / \endcode
258
258
// /
259
259
// / This intrinsic corresponds to the \c POPCNT instruction or a
260
- // / a sequence of arithmetic and logic ops to calculate it.
260
+ // / sequence of arithmetic and logic operations to calculate it.
261
261
// /
262
262
// / \param A
263
263
// / An unsigned 64-bit integer operand.
@@ -268,7 +268,7 @@ __popcntq(unsigned long long __A)
268
268
#endif /* __x86_64__ */
269
269
270
270
#ifdef __x86_64__
271
- // / Returns the program status and control \c RFLAGS register with the \c VM
271
+ // / Returns the program status- and- control \c RFLAGS register with the \c VM
272
272
// / and \c RF flags cleared.
273
273
// /
274
274
// / \headerfile <x86intrin.h>
@@ -282,7 +282,7 @@ __readeflags(void)
282
282
return __builtin_ia32_readeflags_u64 ();
283
283
}
284
284
285
- // / Writes the specified value to the program status and control \c RFLAGS
285
+ // / Writes the specified value to the program status- and- control \c RFLAGS
286
286
// / register. Reserved bits are not affected.
287
287
// /
288
288
// / \headerfile <x86intrin.h>
@@ -298,7 +298,7 @@ __writeeflags(unsigned long long __f)
298
298
}
299
299
300
300
#else /* !__x86_64__ */
301
- // / Returns the program status and control \c EFLAGS register with the \c VM
301
+ // / Returns the program status- and- control \c EFLAGS register with the \c VM
302
302
// / and \c RF flags cleared.
303
303
// /
304
304
// / \headerfile <x86intrin.h>
@@ -312,7 +312,7 @@ __readeflags(void)
312
312
return __builtin_ia32_readeflags_u32 ();
313
313
}
314
314
315
- // / Writes the specified value to the program status and control \c EFLAGS
315
+ // / Writes the specified value to the program status- and- control \c EFLAGS
316
316
// / register. Reserved bits are not affected.
317
317
// /
318
318
// / \headerfile <x86intrin.h>
@@ -328,7 +328,7 @@ __writeeflags(unsigned int __f)
328
328
}
329
329
#endif /* !__x86_64__ */
330
330
331
- // / Cast a 32-bit float value to a 32-bit unsigned integer value.
331
+ // / Casts a 32-bit float value to a 32-bit unsigned integer value.
332
332
// /
333
333
// / \headerfile <x86intrin.h>
334
334
// /
@@ -337,13 +337,13 @@ __writeeflags(unsigned int __f)
337
337
// /
338
338
// / \param __A
339
339
// / A 32-bit float value.
340
- // / \returns a 32-bit unsigned integer containing the converted value.
340
+ // / \returns A 32-bit unsigned integer containing the converted value.
341
341
static __inline__ unsigned int __DEFAULT_FN_ATTRS_CAST
342
342
_castf32_u32 (float __A) {
343
343
return __builtin_bit_cast (unsigned int , __A);
344
344
}
345
345
346
- // / Cast a 64-bit float value to a 64-bit unsigned integer value.
346
+ // / Casts a 64-bit float value to a 64-bit unsigned integer value.
347
347
// /
348
348
// / \headerfile <x86intrin.h>
349
349
// /
@@ -352,13 +352,13 @@ _castf32_u32(float __A) {
352
352
// /
353
353
// / \param __A
354
354
// / A 64-bit float value.
355
- // / \returns a 64-bit unsigned integer containing the converted value.
355
+ // / \returns A 64-bit unsigned integer containing the converted value.
356
356
static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CAST
357
357
_castf64_u64 (double __A) {
358
358
return __builtin_bit_cast (unsigned long long , __A);
359
359
}
360
360
361
- // / Cast a 32-bit unsigned integer value to a 32-bit float value.
361
+ // / Casts a 32-bit unsigned integer value to a 32-bit float value.
362
362
// /
363
363
// / \headerfile <x86intrin.h>
364
364
// /
@@ -367,13 +367,13 @@ _castf64_u64(double __A) {
367
367
// /
368
368
// / \param __A
369
369
// / A 32-bit unsigned integer value.
370
- // / \returns a 32-bit float value containing the converted value.
370
+ // / \returns A 32-bit float value containing the converted value.
371
371
static __inline__ float __DEFAULT_FN_ATTRS_CAST
372
372
_castu32_f32 (unsigned int __A) {
373
373
return __builtin_bit_cast (float , __A);
374
374
}
375
375
376
- // / Cast a 64-bit unsigned integer value to a 64-bit float value.
376
+ // / Casts a 64-bit unsigned integer value to a 64-bit float value.
377
377
// /
378
378
// / \headerfile <x86intrin.h>
379
379
// /
@@ -382,7 +382,7 @@ _castu32_f32(unsigned int __A) {
382
382
// /
383
383
// / \param __A
384
384
// / A 64-bit unsigned integer value.
385
- // / \returns a 64-bit float value containing the converted value.
385
+ // / \returns A 64-bit float value containing the converted value.
386
386
static __inline__ double __DEFAULT_FN_ATTRS_CAST
387
387
_castu64_f64 (unsigned long long __A) {
388
388
return __builtin_bit_cast (double , __A);
@@ -470,7 +470,7 @@ __crc32q(unsigned long long __C, unsigned long long __D)
470
470
}
471
471
#endif /* __x86_64__ */
472
472
473
- // / Reads the specified performance monitoring counter. Refer to your
473
+ // / Reads the specified performance- monitoring counter. Refer to your
474
474
// / processor's documentation to determine which performance counters are
475
475
// / supported.
476
476
// /
@@ -487,22 +487,22 @@ __rdpmc(int __A) {
487
487
return __builtin_ia32_rdpmc (__A);
488
488
}
489
489
490
- // / Reads the processor's time stamp counter and the \c IA32_TSC_AUX MSR
490
+ // / Reads the processor's time- stamp counter and the \c IA32_TSC_AUX MSR
491
491
// / \c (0xc0000103).
492
492
// /
493
493
// / \headerfile <x86intrin.h>
494
494
// /
495
495
// / This intrinsic corresponds to the \c RDTSCP instruction.
496
496
// /
497
497
// / \param __A
498
- // / Address of where to store the 32-bit \c IA32_TSC_AUX value.
499
- // / \returns The 64-bit value of the time stamp counter.
498
+ // / The address of where to store the 32-bit \c IA32_TSC_AUX value.
499
+ // / \returns The 64-bit value of the time- stamp counter.
500
500
static __inline__ unsigned long long __DEFAULT_FN_ATTRS
501
501
__rdtscp (unsigned int *__A) {
502
502
return __builtin_ia32_rdtscp (__A);
503
503
}
504
504
505
- // / Reads the processor's time stamp counter.
505
+ // / Reads the processor's time- stamp counter.
506
506
// /
507
507
// / \headerfile <x86intrin.h>
508
508
// /
@@ -512,7 +512,7 @@ __rdtscp(unsigned int *__A) {
512
512
// /
513
513
// / This intrinsic corresponds to the \c RDTSC instruction.
514
514
// /
515
- // / \returns The 64-bit value of the time stamp counter.
515
+ // / \returns The 64-bit value of the time- stamp counter.
516
516
#define _rdtsc () __rdtsc()
517
517
518
518
// / Reads the specified performance monitoring counter. Refer to your
0 commit comments