aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-03-09 01:07:16 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-03-09 01:07:16 +0000
commit8519c8e0730039e2925ddb7cc8cfa588a1ef9d13 (patch)
tree018507e35db6cfd73f69341c94da93e7de8109c5 /include
parent3293680dc79c9a4fbbc2bbdd9395a886825a87a2 (diff)
parent28b90d9c19d368645f475e36297ca21c53c38799 (diff)
downloadqemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.zip
qemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.tar.gz
qemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.tar.bz2
Merge remote-tracking branch 'remotes/amit-migration/tags/migration-for-2.6-6' into staging
migration: * add avx2 instruction optimization, speeds up zero-page checking on compatible architectures and compilers (gcc 4.9+) * add additional postcopy stats to 'info migrate' output # gpg: Signature made Tue 08 Mar 2016 11:29:48 GMT using RSA key ID 854083B6 # gpg: Good signature from "Amit Shah <amit@amitshah.net>" # gpg: aka "Amit Shah <amit@kernel.org>" # gpg: aka "Amit Shah <amitshah@gmx.net>" * remotes/amit-migration/tags/migration-for-2.6-6: cutils: add avx2 instruction optimization configure: detect ifunc and avx2 attribute Postcopy: Fix sync count in info migrate Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/qemu-common.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index ced2994..887ca71 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -476,13 +476,7 @@ void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
#endif
#define BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR 8
-static inline bool
-can_use_buffer_find_nonzero_offset(const void *buf, size_t len)
-{
- return (len % (BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR
- * sizeof(VECTYPE)) == 0
- && ((uintptr_t) buf) % sizeof(VECTYPE) == 0);
-}
+bool can_use_buffer_find_nonzero_offset(const void *buf, size_t len);
size_t buffer_find_nonzero_offset(const void *buf, size_t len);
/*