qemu-patch-raspberry4/include
Peter Lieven 41a259bd2b cutils: add a function to find non-zero content in a buffer
this adds buffer_find_nonzero_offset() which is a SSE2/Altivec
optimized function that searches for non-zero content in a
buffer.

the function starts full unrolling only after the first few chunks have
been checked one by one. analyzing real memory page data has revealed
that non-zero pages are non-zero within the first 256-512 bits in
most cases. as this function is also heavily used to check for zero memory
pages this tweak has been made to avoid the high setup costs of the fully
unrolled check for non-zero pages.

due to the optimizations used in the function there are restrictions
on buffer address and search length. the function
can_use_buffer_find_nonzero_content() can be used to check if
the function can be used safely.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2013-03-26 13:32:28 +01:00
..
block block: Allow omitting the file name when using driver-specific options 2013-03-22 17:51:32 +01:00
bt softmmu: move remaining include files to include/ subdirectories 2012-12-19 08:32:46 +01:00
char char: Fix return type of qemu_chr_fe_add_watch() 2013-03-19 07:56:07 -05:00
disas Add moxie disassembler 2013-03-23 14:25:41 +00:00
exec cpu: Pass CPUState to cpu_interrupt() 2013-03-12 10:35:55 +01:00
fpu softfloat: Implement uint64_to_float128 2013-01-05 10:12:50 +00:00
migration savevm: Fix bugs in the VMSTATE_VBUFFER_MULTIPLY definition 2013-03-26 13:30:49 +01:00
monitor hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00
net net: increase buffer size to accommodate Jumbo frame pkts 2013-03-25 11:14:07 +01:00
qapi Add qdict_clone_shallow() 2013-03-15 16:07:49 +01:00
qemu nbd: Keep hostname and port separate 2013-03-22 17:51:31 +01:00
qom Fix typos and misspellings 2013-03-22 13:25:07 +01:00
sysemu Add sample moxie system 2013-03-23 14:25:41 +00:00
tpm Support for TPM command line options 2013-03-12 13:40:11 -05:00
ui console: remove ds_get_* helper functions 2013-03-18 10:21:59 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
libfdt_env.h fdt: Use bswapN instead of bswap_N 2013-01-12 12:22:58 +00:00
qemu-common.h cutils: add a function to find non-zero content in a buffer 2013-03-26 13:32:28 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00