mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00: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:
parent
6e00aa6bae
commit
72641dcaae
1 changed files with 6 additions and 18 deletions
24
src/misc.cpp
24
src/misc.cpp
|
@ -17,24 +17,6 @@
|
|||
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 <iostream>
|
||||
#include <sstream>
|
||||
|
@ -42,6 +24,10 @@
|
|||
#include "misc.h"
|
||||
#include "thread.h"
|
||||
|
||||
#if defined(__hpux)
|
||||
# include <sys/pstat.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
/// Version number. If Version is left empty, then Tag plus current
|
||||
|
@ -219,6 +205,8 @@ void prefetch(char*) {}
|
|||
|
||||
#else
|
||||
|
||||
# include <xmmintrin.h>
|
||||
|
||||
void prefetch(char* addr) {
|
||||
|
||||
# if defined(__INTEL_COMPILER) || defined(__ICL)
|
||||
|
|
Loading…
Add table
Reference in a new issue