Question: long rfun(int x)( if (xe) return e; int nx = x >> 2; long rv rfun(nx); return x rv; Fill in the blanks by dragging
long rfun(int x)( if (xe) return e; int nx = x >> 2; long rv rfun(nx); return x rv; Fill in the blanks by dragging the appropriate entries below rfun: movl $0, %eax pushq mov! %rbx %edi, %ebx movs1q call mov s 1 q %edi, rfun %ebx, %rdi %rbx movq %rbx, %rax popq %rbs rep ret pushq mov1 %rbs %edi, %ebx movs1q call movs1q %edi, %rdi rfun %ebx, %rbx movq popq %rbx, %rbx %rax L6: rep ret unsigned int | | imulq 96rbx, 96rax || imulq 96rdi, %rax || cmpg $100, 96rdi | | addq %rbx, 96rax | | testq 96rdi, 96rdi leaq (9rdi,rdi), 96roi testi %edi, %edi | | subq %rax, 96rbx shrq $2,9%rdi je .L6 shrl $2, %edi sarl $2, %edi sarq $3, %rdi sarq $2, rdi ja .L6 s.L6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
