aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/mmu_helper.c
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2016-07-28 23:44:11 +0530
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-07 12:40:11 +1000
commitb07c32dc4bdda102803ed6699438fef059c8f408 (patch)
treec29dd624ba0afdc3945eace5340ace9ac6741cd4 /target-ppc/mmu_helper.c
parent5817355ed0d989c72713d89c8d1e9133ec376485 (diff)
target-ppc: implement branch-less divw[o][.]
While implementing modulo instructions figured out that the implementation uses many branches. Change the logic to achieve the branch-less code. Undefined value is set to dividend in case of invalid input. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/mmu_helper.c')
0 files changed, 0 insertions, 0 deletions