Boost logo

Boost :

Subject: Re: [boost] Fixed point integer proposal
From: Patrick Mihelich (patrick.mihelich_at_[hidden])
Date: 2009-06-24 21:23:47


On Wed, Jun 24, 2009 at 12:51 PM, Soren Holstebroe <holstebroe_at_[hidden]>wrote:

> Would there be public interest in a template like that in the boost
> library?

Yes, very much so. My main use case is also image processing.

It would be useful if you could compare your work to other implementations,
such as:
 * Phil Endecott's related proposal last year, and the ensuing discussion:
http://lists.boost.org/Archives/boost/2007/04/120082.php
 * Dr. Dobbs, "Fixed-Point Arithmetic Types for C++,"
http://www.ddj.com/cpp/184401992

How are multiplication and division handled?

Is overflow detection and/or saturation arithmetic supported?

Cheers,
Patrick


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk