Files
stockfish/src
protonspringandStéphane Nicolet f7cc0026e3 Simplify BlockedByKing in pawn storms
This patch is non-functional. Current master does four operations to determine
whether an enemy pawn on this file is blocked by the king or not

```
f == file_of(ksq) && rkThem == relative_rank(Us, ksq) + 1 )
```

By adding a direction (based on the template color), this is reduced to two
operations. This works because b is limited to enemy pawns that are ahead of
the king and on the current file.

```
shift<Down>(b) & ksq
```

I've added a line of code, but the number of executing instructions is reduced
(I think). I'm not sure if this counts as a simplification, but it should
theoretically be a little faster (barely). The code line length is also reduced
making it a little easier to read.

Closes https://github.com/official-stockfish/Stockfish/pull/1552

No functional change.
2018-04-18 20:03:52 +02:00
..
2018-04-18 18:46:24 +02:00
2018-01-01 13:18:10 +01:00
2018-04-01 02:32:55 +02:00
2018-03-27 16:25:41 +02:00
2018-01-01 13:18:10 +01:00
2018-04-18 19:44:41 +02:00
2018-03-30 10:48:57 +02:00
2018-03-03 11:07:23 +01:00
2018-01-01 13:18:10 +01:00
2018-03-16 22:37:03 +01:00
2018-03-27 16:25:41 +02:00
2018-01-01 13:18:10 +01:00
2018-03-27 16:45:12 +02:00
2018-03-27 16:45:12 +02:00
2018-02-20 17:11:18 +01:00
2018-04-18 18:46:24 +02:00
2018-04-18 18:46:24 +02:00
2018-04-18 18:46:24 +02:00
2018-01-01 13:18:10 +01:00
2018-04-18 18:46:24 +02:00
2018-04-18 18:46:24 +02:00
2018-03-27 16:25:41 +02:00
2018-01-01 13:18:10 +01:00
2018-04-03 00:13:38 +02:00
2018-04-18 17:49:19 +02:00
2018-04-18 17:49:19 +02:00