mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-25 06:14:26 +08:00
Define log2() on FreeBSD (fixes bug #343).
This commit is contained in:
parent
f1d98aad1b
commit
b38d3b360e
@ -28,7 +28,7 @@
|
||||
|
||||
#include "StemFunction.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) || defined(__FreeBSD__)
|
||||
template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user