From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: Artyom Tarasenko <atar4qemu@gmail.com>
Subject: [Qemu-devel] [PULL 01/19] qemu-common: add VEC_OR macro
Date: Mon, 6 Jul 2015 14:34:50 +0200 [thread overview]
Message-ID: <1436186108-29747-2-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1436186108-29747-1-git-send-email-pbonzini@redhat.com>
From: Artyom Tarasenko <atar4qemu@gmail.com>
Intel C Compiler version 15.0.3.187 Build 20150407 doesn't support
'|' function for non floating-point simd operands.
Define VEC_OR macro which uses _mm_or_si128 supported
both in icc and gcc on x86 platform.
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Message-Id: <54c804cdb3b3a93e93ef98f085dc57c4092580b7.1435062067.git.atar4qemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/qemu-common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/qemu-common.h b/include/qemu-common.h
index d52d09c..5be3cdd 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -455,6 +455,7 @@ void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
#define VECTYPE __vector unsigned char
#define SPLAT(p) vec_splat(vec_ld(0, p), 0)
#define ALL_EQ(v1, v2) vec_all_eq(v1, v2)
+#define VEC_OR(v1, v2) ((v1) | (v2))
/* altivec.h may redefine the bool macro as vector type.
* Reset it to POSIX semantics. */
#define bool _Bool
@@ -463,10 +464,12 @@ void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
#define VECTYPE __m128i
#define SPLAT(p) _mm_set1_epi8(*(p))
#define ALL_EQ(v1, v2) (_mm_movemask_epi8(_mm_cmpeq_epi8(v1, v2)) == 0xFFFF)
+#define VEC_OR(v1, v2) (_mm_or_si128(v1, v2))
#else
#define VECTYPE unsigned long
#define SPLAT(p) (*(p) * (~0UL / 255))
#define ALL_EQ(v1, v2) ((v1) == (v2))
+#define VEC_OR(v1, v2) ((v1) | (v2))
#endif
#define BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR 8
--
2.4.3
next prev parent reply other threads:[~2015-07-06 12:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 12:34 [Qemu-devel] [PULL 00/19] Multithread, multiarch, multicompiler, multi^WKVM changes for 2015-07-06 Paolo Bonzini
2015-07-06 12:34 ` Paolo Bonzini [this message]
2015-07-06 12:34 ` [Qemu-devel] [PULL 02/19] cutils: allow compilation with icc Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 03/19] memory_mapping: Rework cpu related includes Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 04/19] cpu-defs: Move CPU_TEMP_BUF_NLONGS to tcg Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 05/19] include/exec: Move standard exceptions to cpu-all.h Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 06/19] include/exec: Move tb hash functions out Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 07/19] cpu-defs: Move out TB_JMP defines Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 08/19] Fix irq route entries exceeding KVM_MAX_IRQ_ROUTES Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 09/19] main-loop: use qemu_mutex_lock_iothread consistently Paolo Bonzini
2015-07-06 12:34 ` [Qemu-devel] [PULL 10/19] main-loop: introduce qemu_mutex_iothread_locked Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 11/19] memory: Add global-locking property to memory regions Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 12/19] exec: pull qemu_flush_coalesced_mmio_buffer() into address_space_rw/ld*/st* Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 13/19] memory: let address_space_rw/ld*/st* run outside the BQL Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 14/19] kvm: First step to push iothread lock out of inner run loop Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 15/19] kvm: Switch to unlocked PIO Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 16/19] acpi: mark PMTIMER as unlocked Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 17/19] kvm: Switch to unlocked MMIO Paolo Bonzini
2015-07-06 12:35 ` [Qemu-devel] [PULL 18/19] Stop including qemu-common.h in memory.h Paolo Bonzini
2015-07-06 13:02 ` Peter Maydell
2015-07-06 12:35 ` [Qemu-devel] [PULL 19/19] exec: skip MMIO regions correctly in cpu_physical_memory_write_rom_internal Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436186108-29747-2-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=atar4qemu@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).