1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00
This commit is contained in:
root 2015-01-10 14:42:17 +00:00
parent 2e9e06fc07
commit bca6a6a033
2 changed files with 16 additions and 1 deletions

View file

@ -34,7 +34,7 @@ BINDIR = $(PREFIX)/bin
PGOBENCH = ./$(EXE) bench 16 1 1 default time PGOBENCH = ./$(EXE) bench 16 1 1 default time
### Object files ### Object files
OBJS = bitboard.o OBJS = test.o
### ========================================================================== ### ==========================================================================
### Section 2. High-level Configuration ### Section 2. High-level Configuration

15
src/test.cpp Normal file
View file

@ -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];
}