]> git.sesse.net Git - stockfish/commitdiff
Use thread_local compiler specifics
authorMarco Costalba <mcostalba@gmail.com>
Fri, 6 Apr 2012 16:01:41 +0000 (17:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 6 Apr 2012 17:03:15 +0000 (18:03 +0100)
Much faster then pthread_getspecific() but still a
speed regression against the original code.

Following are the nps on a bench:

Position
454165
454838
455433

tls
441046
442767
442767

ms (Win)
450521
447510
451105

ms (pthread)
422115
422115
424276

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found