LWN.net Logo

Mask bits in pointers

Mask bits in pointers

Posted Mar 30, 2007 21:19 UTC (Fri) by proski (subscriber, #104)
In reply to: Mask bits in pointers by ldo
Parent article: Deferrable timers

Casting a pointer to unsigned int would cause at least a warning on 64-bit systems. And I'm not convinced that avoiding an extra field in struct tvec_t_base_s by using pointer arithmetics would offer any advantage either in memory requirements or in speed.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds