Support for fixed point arithmetic in Boost?
Hi, Sorry if this is a dumb question but I have been looking for fixed point types in Boost and not found any... Yet I feel there must be... Thanks for any help Juan
On 11/7/2016 12:51 PM, Juan Dent wrote:
Hi,
Sorry if this is a dumb question but I have been looking for fixed point types in Boost and not found any...
Yet I feel there must be...
Thanks for any help
There was in fact just recently discussion of 2 fixed-point libraries on this mailing list. https://github.com/BoostGSoC15/fixed_point https://github.com/johnmcfarlane/fixed_point
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Michael Marcin Sent: 08 November 2016 05:59 To: boost@lists.boost.org Subject: Re: [boost] Support for fixed point arithmetic in Boost?
On 11/7/2016 12:51 PM, Juan Dent wrote:
Hi,
Sorry if this is a dumb question but I have been looking for fixed point types in Boost and not found any...
Yet I feel there must be...
Thanks for any help
There was in fact just recently discussion of 2 fixed-point libraries on this mailing list.
https://github.com/BoostGSoC15/fixed_point https://github.com/johnmcfarlane/fixed_point
You can also see a pdf version of Christopher Kormanyos's fixed-point library at https://dl.dropboxusercontent.com/u/43940943/modular-boost/libs/fixed_point/... Chris has produced a rather different concept of a fixed point library from John Macfarlane, starting with Lawrence Crowl's paper, fixing the size of the underlying integral type and not allowing 'automatic' expansion on overflow. Using multiprecision integral types allows some really high precision computations, if that's what you need, but you need to decide the size at compile-time. He has also fully implemented the C math functions so that most existing code using floating-point can be run without modification. Some amusing working examples are given. These rather different proposals focus on different uses, Chris's on embedded and IoT devices where the key advantage of fixed-point appears to me, to my surprise, to be lower power consumption, and speed. Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
There was in fact just recently discussion of 2 fixed-point libraries on this mailing list.
https://github.com/BoostGSoC15/fixed_point https://github.com/johnmcfarlane/fixed_point
You can also see a pdf version of Christopher Kormanyos's fixed-point library at https://dl.dropboxusercontent.com/u/43940943/modular-boost/libs/fixed_point/...
And don't forget the safe numerics library !!!! it's in the review queue
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: 08 November 2016 15:35 To: boost@lists.boost.org Subject: Re: [boost] Support for fixed point arithmetic in Boost?
There was in fact just recently discussion of 2 fixed-point libraries on this mailing list.
https://github.com/BoostGSoC15/fixed_point https://github.com/johnmcfarlane/fixed_point
You can also see a pdf version of Christopher Kormanyos's fixed-point library at https://dl.dropboxusercontent.com/u/43940943/modular-boost/libs/fixed_point/...
And don't forget the safe numerics library !!!! it's in the review queue
Give us a link? Corrected link to fixed_point PDF docs - sorry :-( https://dl.dropboxusercontent.com/u/43940943/fixed_point.auto_index.pdf Paul
participants (4)
-
Juan Dent
-
Michael Marcin
-
Paul A. Bristow
-
Robert Ramey