Marco Costalba
549b5c478f
Remove unuseful optimization in RKISS
...
Don't need a struct here. Speed test shows
result is teh same. Moreover RKISS is used
mainly at startup to compute magics, so
prefer to keep it simple...RKISS ;-)
Also some assorted triviality while there.
No functional change.
2013-10-13 03:35:17 -07:00
Kojirion
a71209868b
Use pre-increment also for native types
...
Now that we use pre-increment on enums, it
make sense, for code style uniformity, to
swith to pre-increment also for native types,
although there is no speed difference.
No functional change.
2013-09-15 09:17:21 +02:00
homoSapiensSapiens
002062ae93
Use #ifndef instead of #if !defined
...
And #ifdef instead of #if defined
This is more standard form (see for example iostream file).
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2013-07-24 19:49:17 +02:00
Marco Costalba
4ede49cd85
Fully qualify memset and memcpy
...
And other trivial touches.
Ispired by Lucas's DiscoCheck
No functional change.
2013-07-13 18:01:13 +02:00
Marco Costalba
c5ec94d0f1
Update copyright year
...
No functional change.
2013-02-19 07:54:14 +01:00
Marco Costalba
896420b166
Allow to pass a 'seed' to RKISS
...
This somewhat simplifies the code.
Suggested by Lucas Braesch.
No functional change.
2012-12-31 11:59:53 +01:00
Marco Costalba
8307da0de7
Update copyright year to 2012
...
And refresh Readme.txt while there.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-12-30 13:52:16 +01:00
Marco Costalba
81cd417b45
Retire move.h
...
Also some assorted comments fixes and other trivia.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-12-04 11:36:03 +01:00
Marco Costalba
c2511243b4
Update copyright notes in rkiss.h
...
New info after a thread on talkchess:
http://www.talkchess.com/forum/viewtopic.php?t=38313
and some emails exchange with Heinz.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-03-10 08:08:34 +01:00
Marco Costalba
76506bd3d1
Introduce and use rot() in rkiss.h
...
Also fix indentation.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-03-07 19:04:54 +01:00
Marco Costalba
0fcda095df
Move all enum types definitions to types.h
...
Cleanup headers while there.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-02-23 21:52:55 +01:00
Marco Costalba
9dcc2aad98
Various cleanup in book.cpp
...
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-11-08 18:51:42 +01:00
Marco Costalba
4cd53b68d0
Make rkiss seed deterministic
...
Search at fixed depth with one thread must be
reproducible so remove randomess from time().
Also better license description.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-11-07 12:48:23 +01:00
Marco Costalba
8fb16df70e
Let rkiss.h to follow SF coding style
...
Fix also Makefile after mersenne.cpp has been removed
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-11-07 12:22:15 +01:00
Marco Costalba
f5e28ef512
Use Heinz's RKiss instead of marsenne
...
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-11-07 11:52:59 +01:00