Skip to content

Add more Bitboard helper functions - #785

Merged
TerjeKir merged 6 commits into
masterfrom
BBFunctions
Aug 13, 2026
Merged

TerjeKir merged 6 commits into
masterfrom
BBFunctions

Conversation

@TerjeKir

Copy link
Copy Markdown
Owner

Replaces the FileBB and RankBB arrays with functions, and adds more related functions to simplify common use cases combining multiple old helpers like FileBB(FileOf(sq)).

Also specify that the Bitboard enum values should be of type Bitboard (uint64_t) to avoid potential bugs. Clang in GitHub Actions treated the small values as int leading to incorrect results and eventually segfault.

No functional change, possibly tiny slowdown.

Bench: 10625614

@TerjeKir
TerjeKir merged commit c735b8f into master Aug 13, 2026
6 checks passed
@TerjeKir
TerjeKir deleted the BBFunctions branch August 13, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant