File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed
Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,5 @@ unsigned pair_add(struct Pair pair) {
1010
1111unsigned do_work (unsigned x , unsigned y ){
1212 struct Pair pp = {.x = x , .y = y };
13- /*pp.x = x;*/
14- /*pp.y = y;*/
1513 return pair_add (pp );
1614}
Original file line number Diff line number Diff line change 1- unsigned add_three (unsigned x , unsigned y , unsigned z ) {
1+ __attribute__((noinline ))
2+ int add_three (int x , int y , int z ) {
23 return x + y + z ;
34}
45
5- unsigned add_indirect (unsigned x , unsigned y , unsigned * sum ) {
6+ int call_add_three (int t ) {
7+ int x = t * 2 ;
8+ int y = t - 112 ;
9+ int z = t + 393 ;
10+ return add_three (x , y , z );
11+ }
12+
13+ __attribute__((noinline ))
14+ char add_three_chars (char x , char y , char z ) {
15+ return x + y + z ;
16+ }
17+
18+ char call_add_three_chars (char t ) {
19+ char x = t + 2 ;
20+ char y = t - 12 ;
21+ char z = t + 3 ;
22+ return add_three_chars (x , y , z );
23+ }
24+
25+ __int128 add128 (__int128 a , __int128 b ) {
26+ return a + b ;
27+ }
28+
29+ int add_indirect (int x , int y , int * sum ) {
630 * sum = x + y ;
731 return * sum ;
832}
You can’t perform that action at this time.
0 commit comments