summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorWei Yang2019-03-21 09:25:52 +0100
committerPaolo Bonzini2019-09-16 12:32:20 +0200
commitc95cfd040078db8017f74fd3a4d6f798385d960c (patch)
tree42212776fe9a05bd0c2feb4c963985c95ef90e5f /linux-user
parentexec.c: replace hwaddr with uint64_t for better understanding (diff)
downloadqemu-c95cfd040078db8017f74fd3a4d6f798385d960c.tar.gz
qemu-c95cfd040078db8017f74fd3a4d6f798385d960c.tar.xz
qemu-c95cfd040078db8017f74fd3a4d6f798385d960c.zip
exec.c: get nodes_nb_alloc with one MAX calculation
The purpose of these two MAX here is to get the maximum of these three variables: A: map->nodes_nb + nodes B: map->nodes_nb_alloc C: alloc_hint We can write it like MAX(A, B, C). Since the if condition says A > B, this means MAX(A, B, C) = MAX(A, C). This patch just simplify the calculation a bit. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190321082555.21118-4-richardw.yang@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions