-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
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
- What is the difference between the two cases? I did not see
SIMPLEis defined anywhere. - In the
elsecase, you check ifretis-2. However, I think theretcan never be-2, as you only return0, 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
Metadata
Metadata
Assignees
Labels
No labels