test.cpp
parent
2e9e06fc07
commit
bca6a6a033
|
@ -34,7 +34,7 @@ BINDIR = $(PREFIX)/bin
|
|||
PGOBENCH = ./$(EXE) bench 16 1 1 default time
|
||||
|
||||
### Object files
|
||||
OBJS = bitboard.o
|
||||
OBJS = test.o
|
||||
|
||||
### ==========================================================================
|
||||
### Section 2. High-level Configuration
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
int A[8];
|
||||
int B[8];
|
||||
int C;
|
||||
|
||||
int main() {
|
||||
|
||||
for (int f = 0; f <= 7; ++f)
|
||||
A[f] = f;
|
||||
|
||||
for (int f = 0; f <= 7; ++f)
|
||||
B[f] = (f > 0 ? A[f - 1] : 0) | (f < 7 ? A[f + 1] : 0);
|
||||
|
||||
C = B[7];
|
||||
}
|
||||
|
Loading…
Reference in New Issue