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

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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]