c++ify sreal
authorTrevor Saunders <tsaunders@mozilla.com>
Tue, 11 Nov 2014 02:31:00 +0000 (02:31 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Tue, 11 Nov 2014 02:31:00 +0000 (02:31 +0000)
commit618b7f293745ac92cc4fef113239e84f79c4d4ff
tree45432b15918ada70945d621144d6decabaa36832
parent43722f9fa69d4cc9a369b468552d5612674a576f
c++ify sreal

gcc/ChangeLog:

2014-11-10  Trevor Saunders  <tsaunders@mozilla.com>

* ipa-inline.c (edge_badness): Adjust.
(inline_small_functions): Likewise.
* predict.c (propagate_freq): Likewise.
(estimate_bb_frequencies): Likewise.
* sreal.c (sreal::dump): Rename from dump_sreal.
(debug): Adjust.
(copy): Remove function.
(sreal::shift_right): Rename from sreal_sift_right.
(sreal::normalize): Rename from normalize.
(sreal_init): Remove function.
(sreal::to_int): Rename from sreal_to_int.
(sreal_compare): Remove function.
(sreal::operator+): Rename from sreal_add.
(sreal::operator-): Rename from sreal_sub.
(sreal::operator*): Rename from sreal_mul.
(sreal::operator/): Rename from sreal_div.
* sreal.h (class sreal): Adjust.
(inline sreal &operator+=): New operator.
(inline sreal &operator-=): Likewise.
(inline sreal &operator/=): Likewise.
(inline sreal &operator*=): Likewise.
(inline bool operator!=): Likewise.
(inline bool operator>): Likewise.
(inline bool operator<=): Likewise.
(inline bool operator>=): Likewise.

From-SVN: r217332
gcc/ChangeLog
gcc/ipa-inline.c
gcc/predict.c
gcc/sreal.c
gcc/sreal.h