This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/35766] Should cast pointers and references more efficiently and safely



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-29 03:44 -------
I get a branchless form with -march=i686 -O2:
        testl   %edx, %edx
        leal    4(%edx), %ecx
        cmovne  %ecx, %eax


Also in your case if d is NULL, then b has to be NULL.  Nothing to do with
anything else


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35766


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]