Re: Re: where can / must one activate 'LONG DOUBLES'? - works to some extend, feedback and additional questions

Morten Welinder <[email protected]> Sun, 19 Sep 2021 11:18:44 -0400
Newsgroups gmane.comp.gnome.apps.gnumeric
Message-ID <CANv4PNm0Z-PexY5m+kdfnc8qdFjdxHMz5MnVYXkMiW44=QSa3A@mail.gmail.com>
GOAccumulator usage goes something like this:

void *state = go_accumulator_start ();
GOAccumulator *acc = go_accumulator_new ();
go_accumulator_add (acc, d1);
go_accumulator_add (acc, d2);
go_accumulator_add (acc, d3);
go_accumulator_add (acc, d4);
double res = go_accumulator_value (acc);
go_accumulator_free (acc);
go_accumulator_end (state);

The only thing magic here is "state" which relates to cpu state
(precision mode, rounding mode) and isn't particularly relevant for
modern cpus.

M.