diff options
| author | Peter Maydell | 2016-03-09 02:07:16 +0100 |
|---|---|---|
| committer | Peter Maydell | 2016-03-09 02:07:16 +0100 |
| commit | 8519c8e0730039e2925ddb7cc8cfa588a1ef9d13 (patch) | |
| tree | 018507e35db6cfd73f69341c94da93e7de8109c5 /include | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-fw-cfg-20160308-1' int... (diff) | |
| parent | cutils: add avx2 instruction optimization (diff) | |
| download | qemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.tar.gz qemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.tar.xz qemu-8519c8e0730039e2925ddb7cc8cfa588a1ef9d13.zip | |
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.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index ced2994402..887ca71c8a 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); /* |
