On Die, 2010-04-20 at 16:52 +0530, Onkar Mahajan wrote: > Hi All , > Please correct me otherwise , if I am wrong here : > > #define hlist_for_each_entry(tpos, pos, head, member) \ > for (pos = (head)->first; \ > pos && ({ prefetch(pos->next); 1;}) && \ <------------------(1) > ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \ > <-------------(2) > pos = pos->next) > > In my understanding ({ prefetch(pos->next); 1;}) & ({ tpos = > hlist_entry(pos, typeof(*tpos), member); 1;}) > will always return 1 , and will do additional tasks ( which don't > affect the final outcome of the expression in the {}) > of pre-fetching ( in (1) ) and casting the "current" pos into the > typeof(*tpos) ( in (2) ). > > Am I right ? Yes. Bernd -- Bernd Petrovitsch Email : bernd@xxxxxxxxxxxxxxxxxxx LUGA : http://www.luga.at -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ