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 libstdc++/50160] vector<bool> comparison very slow (no overload)


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

--- Comment #25 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-08-31 00:56:42 UTC ---
I think a separate Bugzilla requesting as an enhancement such intrinsics would
be certainly appropriate. I'm sure other code could exploit those.

Note, in the meanwhile we could as well do the exercise of separating the
operation to a C function - for unsigned long, the 32-bit and 64-bit cases
would be good enough for now - coded perhaps along the lines explained at the
beginning of Ch. 7 of "Hacker's Delight" and use the function for operator<
(please, not inline). See which performance come out.


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