Common: Move CPU macros to types.h
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
#include "common/file_system.h"
|
||||
#include "common/heap_array.h"
|
||||
#include "common/log.h"
|
||||
#include "common/platform.h"
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
@ -30,7 +29,7 @@
|
||||
#include <vector>
|
||||
Log_SetChannel(CDROM);
|
||||
|
||||
#if defined(CPU_X64)
|
||||
#if defined(CPU_ARCH_X64)
|
||||
#include <emmintrin.h>
|
||||
#endif
|
||||
|
||||
@ -3074,7 +3073,7 @@ static s16 GetPeakVolume(const u8* raw_sector, u8 channel)
|
||||
{
|
||||
static constexpr u32 NUM_SAMPLES = CDImage::RAW_SECTOR_SIZE / sizeof(s16);
|
||||
|
||||
#if defined(CPU_X64)
|
||||
#if defined(CPU_ARCH_X64)
|
||||
static_assert(Common::IsAlignedPow2(NUM_SAMPLES, 8));
|
||||
const u8* current_ptr = raw_sector;
|
||||
__m128i v_peak = _mm_set1_epi16(0);
|
||||
|
||||
Reference in New Issue
Block a user