Skip to content

Commit

Permalink
Inline for another Bitboard.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Oct 25, 2024
1 parent bfab101 commit dab1ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/bitboard/Bitboard.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object Bitboard:

inline def apply(inline l: Long): Bitboard = l
inline def apply(inline xs: Iterable[Square]): Bitboard = xs.foldLeft(empty)((b, s) => b | s.bl)
inline def apply(xs: Square*): Bitboard = apply(xs.toList)
inline def apply(inline xs: Square*): Bitboard = apply(xs.toList)

val empty: Bitboard = 0L
val all: Bitboard = -1L
Expand Down

0 comments on commit dab1ddc

Please sign in to comment.