@@ -504,7 +504,7 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
504
504
printf ("%s(%s, %s) = %s\n" , #func , str, str2, str3); \
505
505
}
506
506
507
- #define Ret_M128_Tint_body (Ret_type , func , Tint ) \
507
+ #define Ret_M128_Tint_body (Ret_type , func , Tint ) [](){ \
508
508
for(int i = 0; i < numInterestingFloats / 4; ++i) \
509
509
for(int k = 0; k < 4; ++k) \
510
510
{ \
@@ -513,9 +513,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
513
513
char str[256]; tostr(&m1, str); \
514
514
char str2[256]; tostr(&ret, str2); \
515
515
printf("%s(%s, %d) = %s\n", #func, str, Tint, str2); \
516
- }
516
+ } \
517
+ }();
517
518
518
- #define Ret_M128d_Tint_body (Ret_type , func , Tint ) \
519
+ #define Ret_M128d_Tint_body (Ret_type , func , Tint ) [](){ \
519
520
for(int i = 0; i < numInterestingDoubles / 2; ++i) \
520
521
for(int k = 0; k < 2; ++k) \
521
522
{ \
@@ -524,9 +525,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
524
525
char str[256]; tostr(&m1, str); \
525
526
char str2[256]; tostr(&ret, str2); \
526
527
printf("%s(%s, %d) = %s\n", #func, str, Tint, str2); \
527
- }
528
+ } \
529
+ }();
528
530
529
- #define Ret_M128i_Tint_body (Ret_type , func , Tint ) \
531
+ #define Ret_M128i_Tint_body (Ret_type , func , Tint ) [](){ \
530
532
for(int i = 0; i < numInterestingInts / 4; ++i) \
531
533
for(int k = 0; k < 4; ++k) \
532
534
{ \
@@ -535,9 +537,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
535
537
char str[256]; tostr(&m1, str); \
536
538
char str2[256]; tostr(&ret, str2); \
537
539
printf("%s(%s, %d) = %s\n", #func, str, Tint, str2); \
538
- }
540
+ } \
541
+ }();
539
542
540
- #define Ret_M128i_int_Tint_body (Ret_type , func , Tint ) \
543
+ #define Ret_M128i_int_Tint_body (Ret_type , func , Tint ) [](){ \
541
544
for(int i = 0; i < numInterestingInts / 4; ++i) \
542
545
for(int j = 0; j < numInterestingInts; ++j) \
543
546
for(int k = 0; k < 4; ++k) \
@@ -547,9 +550,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
547
550
char str[256]; tostr(&m1, str); \
548
551
char str2[256]; tostr(&ret, str2); \
549
552
printf("%s(%s, 0x%08X, %d) = %s\n", #func, str, interesting_ints[j], Tint, str2); \
550
- }
553
+ } \
554
+ }();
551
555
552
- #define Ret_M128d_M128d_Tint_body (Ret_type , func , Tint ) \
556
+ #define Ret_M128d_M128d_Tint_body (Ret_type , func , Tint ) [](){ \
553
557
for(int i = 0; i < numInterestingDoubles / 2; ++i) \
554
558
for(int k = 0; k < 2; ++k) \
555
559
for(int j = 0; j < numInterestingDoubles / 2; ++j) \
@@ -568,9 +572,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
568
572
tostr (& m2 , str2 ); \
569
573
tostr (& ret , str3 ); \
570
574
printf ("%s(%s, %s, %d) = %s\n" , #func , str, str2, Tint, str3); \
571
- }
575
+ } \
576
+ }();
572
577
573
- #define Ret_M128i_M128i_Tint_body (Ret_type , func , Tint ) \
578
+ #define Ret_M128i_M128i_Tint_body (Ret_type , func , Tint ) [](){ \
574
579
for(int i = 0; i < numInterestingInts / 4; ++i) \
575
580
for(int k = 0; k < 4; ++k) \
576
581
for(int j = 0; j < numInterestingInts / 4; ++j) \
@@ -589,9 +594,10 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
589
594
tostr (& m2 , str2 ); \
590
595
tostr (& ret , str3 ); \
591
596
printf ("%s(%s, %s, %d) = %s\n" , #func , str, str2, Tint, str3); \
592
- }
597
+ } \
598
+ }();
593
599
594
- #define Ret_M128_M128_Tint_body (Ret_type , func , Tint ) \
600
+ #define Ret_M128_M128_Tint_body (Ret_type , func , Tint ) [](){ \
595
601
for(int i = 0; i < numInterestingFloats / 4; ++i) \
596
602
for(int k = 0; k < 4; ++k) \
597
603
for(int j = 0; j < numInterestingFloats / 4; ++j) \
@@ -610,7 +616,8 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
610
616
tostr (& m2 , str2 ); \
611
617
tostr (& ret , str3 ); \
612
618
printf ("%s(%s, %s, %d) = %s\n" , #func , str, str2, Tint, str3); \
613
- }
619
+ } \
620
+ }();
614
621
615
622
#define const_int8_unroll (Ret_type , F , func ) \
616
623
F(Ret_type, func, 0b00000000); \
0 commit comments