CCTLib
Calling-context and data-object attribution library for Intel Pin
test4.c
Go to the documentation of this file.
1 /* This test is for bit shifting operations */
2 
3 #include <stdio.h>
4 
5 #define MAX 5010
6 
7 int logical(int a , int b){
8 
9  int c, d, e, f, g, h;
10  unsigned long long cc, dd;
11  unsigned long ee, ff;
12  int i;
13 
14  for(i = 0; i < MAX; ++i){
15  c = a & b;
16  cc = (unsigned long long)c;
17  ee = cc >> 32;
18  ff = cc << 32;
19  ee = (unsigned long)c;
20  dd = ee | ff;
21  }
22  if( cc == dd)
23  printf("cc and dd is the same!\n");
24  return c;
25 }
26 
27 void main(){
28  logical(1,2);
29 }
30 
void h()
Definition: test4.c:18
void g()
Definition: test4.c:7
void f()
Definition: test4.c:24
int main()
Definition: test4.c:29
int a[1000]
Definition: testArray.c:5
int logical(int a, int b)
Definition: test4.c:7
#define MAX
Definition: test4.c:5