[PATCH 1/2] Negative numbers added for sreal class.
commit8201d1f6eeecb46528ce0ab2fc1b67f5fd442e36
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2014 10:41:18 +0000 (24 10:41 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2014 10:41:18 +0000 (24 10:41 +0000)
treefc054fc4a4670f251324a07ce04dee2b8dc12fa8
parent498fec4d8595b60227fc3f824bb758b6f28a674d
[PATCH 1/2] Negative numbers added for sreal class.

* predict.c (propagate_freq): More elegant sreal API is used.
(estimate_bb_frequencies): Precomputed constants replaced by integer
constants.
* sreal.c (sreal::normalize): New function.
(sreal::to_int): Likewise.
(sreal::operator+): Likewise.
(sreal::operator-): Likewise.
(sreal::signedless_plus): Likewise.
(sreal::signedless_minus): Likewise.
(sreal::operator/): Negative number support is added.
* sreal.h: Definition of new functions added.
(inline sreal operator<<): New function.
(inline sreal operator>>): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218008 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/predict.c
gcc/sreal.c
gcc/sreal.h