git-svn-id: svn://db.shs.com.ru/pip@899 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
class PIP_EXPORT PIConditionVariable {
|
class PIP_EXPORT PIConditionVariable {
|
||||||
public:
|
public:
|
||||||
explicit PIConditionVariable();
|
explicit PIConditionVariable();
|
||||||
~PIConditionVariable();
|
virtual ~PIConditionVariable();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Unblocks one of the threads currently waiting for this condition. If no threads are waiting, the function
|
* @brief Unblocks one of the threads currently waiting for this condition. If no threads are waiting, the function
|
||||||
|
|||||||
@@ -67,14 +67,13 @@ inline complexd sign(const complexd & x) {return complexd(sign(x.real()), sign(x
|
|||||||
|
|
||||||
inline complexd round(const complexd & c) {return complexd(piRound<double>(c.real()), piRound<double>(c.imag()));}
|
inline complexd round(const complexd & c) {return complexd(piRound<double>(c.real()), piRound<double>(c.imag()));}
|
||||||
inline complexd floor(const complexd & c) {return complexd(floor(c.real()), floor(c.imag()));}
|
inline complexd floor(const complexd & c) {return complexd(floor(c.real()), floor(c.imag()));}
|
||||||
inline complexd ceil(const complexd & c) {return complexd(ceil(c.real()), ceil(c.imag()));}
|
inline complexd ceil (const complexd & c) {return complexd(ceil(c.real()), ceil(c.imag()));}
|
||||||
|
|
||||||
#ifdef PIP_CXX11_SUPPORT
|
#ifdef PIP_CXX11_SUPPORT
|
||||||
# define acosc acos
|
# define acosc acos
|
||||||
# define asinc asin
|
# define asinc asin
|
||||||
# define atanc atan
|
# define atanc atan
|
||||||
#else
|
#else
|
||||||
inline complexd atanc(const complexd & c) {return -complexd(-0.5, 1.) * log((complexd_1 + complexd_i * c) / (complexd_1 - complexd_i * c));}
|
inline complexd atanc(const complexd & c) {return complexd(0., 0.5) * log((complexd_1 - complexd_i * c) / (complexd_1 + complexd_i * c));}
|
||||||
inline complexd asinc(const complexd & c) {return -complexd_i * log(complexd_i * c + sqrt(complexd_1 - c * c));}
|
inline complexd asinc(const complexd & c) {return -complexd_i * log(complexd_i * c + sqrt(complexd_1 - c * c));}
|
||||||
inline complexd acosc(const complexd & c) {return -complexd_i * log(c + complexd_i * sqrt(complexd_1 - c * c));}
|
inline complexd acosc(const complexd & c) {return -complexd_i * log(c + complexd_i * sqrt(complexd_1 - c * c));}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user