[RFA] libstdc++/22203, aka PowerPC vs numeric_limits<integer>::traps

Andrew Pinski pinskia@physics.uc.edu
Thu Nov 10 14:15:00 GMT 2005


> 
> Benjamin Kosnik <bkoz@redhat.com> writes:
> | 
> | > For floating points, trpping is a different, more complicated story.
> | > If is_iecxxx is true, then division by zero would not trap (infinity).
> | > If is_iecxxx is false, we don' know (VAX may trap for 0/0 -- I have to
> | > check).
> | > For most cases (i.e. IEE-754), trapping for floating points have to do
> | > with whether there is a support for signaling NaN.
> | 
> | I'm going to punt on the fp types for now, if you feel ambitious in the
> | future, feel free to do something complicated.
> 
> the point I was trying to make is that the division by zero for
> floating point is probably not testing anything :-)

Also there is a DR report open about floating point types and the trapping
variable (I forgot the number).


-- Pinski



More information about the Libstdc++ mailing list