mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Retire platform specifics include in misc.cpp
Now that platform.h is included in types.h we don't need this stuff anymore. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
24
src/misc.cpp
24
src/misc.cpp
@@ -17,24 +17,6 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
|
||||||
|
|
||||||
#define NOMINMAX // disable macros min() and max()
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
# include <unistd.h>
|
|
||||||
# if defined(__hpux)
|
|
||||||
# include <sys/pstat.h>
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(NO_PREFETCH)
|
|
||||||
# include <xmmintrin.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@@ -42,6 +24,10 @@
|
|||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
|
||||||
|
#if defined(__hpux)
|
||||||
|
# include <sys/pstat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/// Version number. If Version is left empty, then Tag plus current
|
/// Version number. If Version is left empty, then Tag plus current
|
||||||
@@ -219,6 +205,8 @@ void prefetch(char*) {}
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
# include <xmmintrin.h>
|
||||||
|
|
||||||
void prefetch(char* addr) {
|
void prefetch(char* addr) {
|
||||||
|
|
||||||
# if defined(__INTEL_COMPILER) || defined(__ICL)
|
# if defined(__INTEL_COMPILER) || defined(__ICL)
|
||||||
|
|||||||
Reference in New Issue
Block a user