A few minor further i386 removals
This commit is contained in:
@@ -22,15 +22,11 @@
|
|||||||
*/
|
*/
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
#if defined(_MSC_VER) && !defined(__clang__)
|
|
||||||
# if defined i386 || defined __i386 || defined __i386__ || defined _X86_ || defined _M_IX86
|
#if defined _M_X64 || defined __amd64__
|
||||||
# define X87_INLINE_ASM
|
# define X87_INLINE_ASM
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
# if defined i386 || defined __i386 || defined __i386__ || defined _X86_ || defined _M_IX86 || defined _M_X64 || defined __amd64__
|
|
||||||
# define X87_INLINE_ASM
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef X87_INLINE_ASM
|
#ifdef X87_INLINE_ASM
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_REP_MOVSB /* small win on amd, big loss on intel */
|
#if USE_REP_MOVSB /* small win on amd, big loss on intel */
|
||||||
#if (__i386 || __amd64) && __GNUC__ >= 3
|
#if (__amd64) && __GNUC__ >= 3
|
||||||
# define lzf_movsb(dst, src, len) \
|
# define lzf_movsb(dst, src, len) \
|
||||||
asm ("rep movsb" \
|
asm ("rep movsb" \
|
||||||
: "=D" (dst), "=S" (src), "=c" (len) \
|
: "=D" (dst), "=S" (src), "=c" (len) \
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ CPU_CONVERT(le, 64, uint64_t)
|
|||||||
|
|
||||||
/* unaligned versions (optimized for frequent unaligned accesses)*/
|
/* unaligned versions (optimized for frequent unaligned accesses)*/
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__powerpc__)
|
#if defined(__powerpc__)
|
||||||
# define cpu_to_le16wu(p, v) cpu_to_le16w(p, v)
|
# define cpu_to_le16wu(p, v) cpu_to_le16w(p, v)
|
||||||
# define cpu_to_le32wu(p, v) cpu_to_le32w(p, v)
|
# define cpu_to_le32wu(p, v) cpu_to_le32w(p, v)
|
||||||
# define le16_to_cpupu(p) le16_to_cpup(p)
|
# define le16_to_cpupu(p) le16_to_cpup(p)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ rotr32c(uint32_t x, uint32_t n)
|
|||||||
static __inline unsigned long long
|
static __inline unsigned long long
|
||||||
rdtsc(void)
|
rdtsc(void)
|
||||||
{
|
{
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
unsigned int hi;
|
unsigned int hi;
|
||||||
unsigned int lo;
|
unsigned int lo;
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
|
|||||||
Reference in New Issue
Block a user