[patch] Use bit scanning and counting builtins for std::bitset

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Mon Feb 3 18:18:00 GMT 2003


Benjamin Kosnik <bkoz@redhat.com> writes:

> >On Sun, Feb 02, 2003 at 03:34:34AM +0100, Falk Hueffner wrote:
> >> this patch utilizes gcc's builtin functions for bit counting and
> >> scanning.
>
> Formatting issues:
> 
> -	while ( __byte_ptr < __end_ptr )
> 
> should be
> -	while (__byte_ptr < __end_ptr)

Well, that's in the deleted code :) I chose not to fix formatting
anywhere to keep the patch more readable. But perhaps the whole file
should be reformatted sometime...

> Phil, you might want to try and port this back to 3.2/3.3.

The gcc builtins are only available in 3.4, I think.

-- 
	Falk



More information about the Libstdc++ mailing list