argiopetech / base

Bayesian Analysis for Stellar Evolution
http://webfac.db.erau.edu/~vonhippt/base9/
11 stars 4 forks source link

exp10 missing from non-GNU platforms #39

Closed argiopetech closed 11 years ago

argiopetech commented 11 years ago

GNU libraries provide exp10 (which seems to provide some speed benefit) in . OS X (and presumably other BSD-based systems) do not provide this function.

Proposed

Do a function check for exp10 at configure-time. If it does not exist, define it as

inline double exp10(double val)
{
    return pow(10.0, val);
}
tedvh commented 11 years ago

sounds fine to me.

On 7/23/13 1:15 PM, Elliot Robinson wrote:

GNU libraries provide exp10 (which seems to provide some speed benefit) in . OS X (and presumably other BSD-based systems) do not provide this function.

    Proposed

Do a function check for exp10 at configure-time. If it does not exist, define it as

inline double exp10(double val) { return pow(10.0, val); }

— Reply to this email directly or view it on GitHub https://github.com/argiopetech/base/issues/39.

Ted von Hippel

Department of Physical Sciences Embry-Riddle Aeronautical University 600 S. Clyde Morris Boulevard Daytona Beach, FL 32114-3900 386-226-7751