Remove ostream and add intrin header file

avx_docs
liaogang 9 years ago
parent bf5342702f
commit cb9ebedaef

@ -14,6 +14,8 @@ limitations under the License. */
#ifdef _WIN32
#include <intrin.h>
/// for MSVC
#define CPUID(info, x) __cpuidex(info, x, 0)
@ -49,7 +51,7 @@ SIMDFlags::SIMDFlags() {
simd_flags_ |= cpuInfo[2] & (1 << 16) ? SIMD_FMA4 : SIMD_NONE;
}
SIMDFlags* SIMDFlags::instance() {
const SIMDFlags* SIMDFlags::instance() {
static SIMDFlags instance;
return &instance;
}

@ -11,7 +11,6 @@ limitations under the License. */
#pragma once
#include <iostream>
#include "DisableCopy.h"
namespace paddle {
@ -22,7 +21,7 @@ public:
SIMDFlags();
static SIMDFlags* instance();
static const SIMDFlags* instance();
inline bool isSSE() const { return simd_flags_ & SIMD_SSE; }
inline bool isSSE2() const { return simd_flags_ & SIMD_SSE2; }

Loading…
Cancel
Save