Jerry said:
Ah, I can finally see the source of the misunderstanding.
The algorithm I mentioned was for machines at one end of the spectrum
-- basically IEEE 754 or something very similar.
I also mentioned machines with "weird" representations, for which
frexp/ldexp could be quite slow -- quite possibly slower than pow,
being the important point under the circumstances.
Not only did you mention "weird" (in your own words "dramatically
different" or "strange") machines but you also ignorantly claimed
they were "unusual" which we all take to mean *uncommon*.
I did not say, or mean to imply, that there was no middle ground
between those extremes. I guess since I didn't mention the middle
ground, I can understand how somebody could infer that I didn't
intend for there to be any.
I'm sure many will accept that weak cop-opt and let you slither
quietly away. Here is the simple proof that even using your own
terms and admitted Jerry "facts" (let's just call them "jerry"),
you were wrong.
http://groups.google.com/group/comp.lang.c++/msg/f3f7d4df96ec0124
Jerry said:
OTOH, if the native floating point representation is drastically
different from that [base-2 maybe base-2^n], they could end up pretty
slow -- but machines with such strange floating point representations
are pretty unusual.
jerry-1) machines with "drastically different" or "strange" floating
point representation are "pretty unusual"
http://groups.google.com/group/comp.lang.c++/msg/5cd89bd1b73504be
Jerry said:
Yes, that's probably the most obvious anyway.
jerry-2) decimal floating-point representations are "strange"
http://groups.google.com/group/comp.lang.c++/msg/6bead24b1aeae51a
Jerry said:
I have to admit I'm a bit surprised though -- I thought IBM's
mainframes used decimal floating point, not hexadecimal...
jerry-3) thought IBM mainframes used decimal floating point
From those jerrys we can easily deduce
jerry-3 AND jerry-2 IMPLIES jerry-4) thought IBM mainframes used
"strange" floating point representation
jerry-4 AND jerry-1 IMPLIES jerry-5) thought IBM mainframes are
"pretty unusual".
And there you have it, a clear deductive demonstration from your
own jerrys (Jerry Facts) and words that you were ignorant of the
actual facts and were wrong. Sadly, the closest you can come to
publicly admitting this is to say that you were "surprised" and
that there was "a misunderstanding".
KHD