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

questions about test of lazy-linked-list #1

Open
ryuxin opened this issue Dec 24, 2017 · 0 comments
Open

questions about test of lazy-linked-list #1

ryuxin opened this issue Dec 24, 2017 · 0 comments

Comments

@ryuxin
Copy link

ryuxin commented Dec 24, 2017

This is a great project, and I am learning your code now.
I have some questions about some code in the synchrobench/c-cpp/src/linkedlists/lazy-list/test.c
It has some code like this

#ifdef SIMPLE
	d->nb_add++;
#else
	if (ret != -2)
	{
		d->nb_add++;
	}
#endif

https://github.com/bitslab/ffwd/blob/master/synchrobench/c-cpp/src/linkedlists/lazy-list/test.c#L196-L203

  1. What is the difference between the two cases? I did not see SIMPLE is defined anywhere.
  2. In the else case, you check if ret is -2. However, I think the ret can never be -2, as you only return 0, 1, or -1. For example, some code here
    https://github.com/bitslab/ffwd/blob/master/synchrobench/c-cpp/src/linkedlists/lazy-list/ffwd_lazy.c#L92-L97

Thanks

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

1 participant