Skip to content

Commit bca6a6a

Browse files
author
root
committed
test.cpp
1 parent 2e9e06f commit bca6a6a

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ BINDIR = $(PREFIX)/bin
3434
PGOBENCH = ./$(EXE) bench 16 1 1 default time
3535

3636
### Object files
37-
OBJS = bitboard.o
37+
OBJS = test.o
3838

3939
### ==========================================================================
4040
### Section 2. High-level Configuration

src/test.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
int A[8];
2+
int B[8];
3+
int C;
4+
5+
int main() {
6+
7+
for (int f = 0; f <= 7; ++f)
8+
A[f] = f;
9+
10+
for (int f = 0; f <= 7; ++f)
11+
B[f] = (f > 0 ? A[f - 1] : 0) | (f < 7 ? A[f + 1] : 0);
12+
13+
C = B[7];
14+
}
15+

0 commit comments

Comments
 (0)