Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem 3.66 #5

Closed
gonglinyuan opened this issue Jan 3, 2018 · 1 comment
Closed

Problem 3.66 #5

gonglinyuan opened this issue Jan 3, 2018 · 1 comment

Comments

@gonglinyuan
Copy link

gonglinyuan commented Jan 3, 2018

leaq 1(,%rdi,4), %r8 # t1 = n*4

Why not n*4+1 ?

My answer is
NR(n) = n*3
NC(n) = n*4+1

@DreamAndDead
Copy link
Owner

Brilliant!

I assumed that array in test code would be occupied by random numbers. Actually all elements in array are always zeros every time we run it, so the test code figures out nothing :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants