A perf ABI fix
Posted Sep 26, 2013 20:06 UTC (Thu) by
pr1268 (subscriber, #24648)
In reply to:
A perf ABI fix by geofft
Parent article:
A perf ABI fix
Perhaps I shouldn't have said "Seriously"... My facetiousness extended to the second part of my original comment. Not to mention a typo: s/__uu64/__u64/. Of course, I could simply do a typedef __u64 __uu64; and voilà! Typo gone. :-D
I'm actually intrigued by the fact some above mention using bitfields is perhaps preferred to preprocessor macros. I was under the perception (based on my 2003-2005 undergraduate CS education) that they're frowned upon. As are unions. (Personally, I'm not bothered by either; I have used bitfields and unions, even very recently, in code I've written for demonstrating IEEE-754 floating point representation in binary. A quick look at /usr/include/ieee754.h will show lots of bitfields.)
P.S.1: Even COBOL has a union programming structure (the REDEFINES keyword).
P.S.2: I do think the Perf developers' solution is quite elegant. Well done, folks!
(
Log in to post comments)