Keeping it Real, add Gmprat::Str, Gmprat::Log10
authorSam Moore <matches@ucc.asn.au>
Fri, 3 Oct 2014 06:25:06 +0000 (14:25 +0800)
committerSam Moore <matches@ucc.asn.au>
Fri, 3 Oct 2014 06:25:06 +0000 (14:25 +0800)
commit6b7e92069596a3f19fbe068b14a9c5ef59c22061
tree9960c04df036088f832291d3e6b726d8fb3f2c48
parent326f04a375ce3120f7e8957e3d7cd5f296f513e3
Keeping it Real, add Gmprat::Str, Gmprat::Log10

Fixed* all those horrible compile errors.
View can now use VReal and Path can now use PReal
and at the moment they are Gmprat unless the quadtree is enabled.

For Gmprat::Log10 there are problems.

Using: log(a/b) = log(a) - log(b)
       log(a*b) = log(a) + log(b)

Unfortunately mpz_div_ui quickly becomes a massive performance issue.
Even when well within the range of IEEE singles.

Need to rewrite Gmprat::Log10 but may as well commit since it works* slowly at least.
src/gmprat.h
src/graphicsbuffer.cpp
src/real.h
src/rect.h
src/view.cpp
src/view.h

UCC git Repository :: git.ucc.asn.au