mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
test.cpp
This commit is contained in:
parent
2e9e06fc07
commit
bca6a6a033
2 changed files with 16 additions and 1 deletions
|
@ -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
15
src/test.cpp
Normal 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];
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue