softfloat.hpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html
  4. // This file is based on files from package issued with the following license:
  5. /*============================================================================
  6. This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic
  7. Package, Release 3c, by John R. Hauser.
  8. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
  9. University of California. All rights reserved.
  10. Redistribution and use in source and binary forms, with or without
  11. modification, are permitted provided that the following conditions are met:
  12. 1. Redistributions of source code must retain the above copyright notice,
  13. this list of conditions, and the following disclaimer.
  14. 2. Redistributions in binary form must reproduce the above copyright notice,
  15. this list of conditions, and the following disclaimer in the documentation
  16. and/or other materials provided with the distribution.
  17. 3. Neither the name of the University nor the names of its contributors may
  18. be used to endorse or promote products derived from this software without
  19. specific prior written permission.
  20. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS", AND ANY
  21. EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  22. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE
  23. DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
  24. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  25. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  26. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  27. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. =============================================================================*/
  31. #pragma once
  32. #ifndef softfloat_h
  33. #define softfloat_h 1
  34. #include "cvdef.h"
  35. // int32_t / uint32_t
  36. #if defined(_MSC_VER) && _MSC_VER < 1600 /* MSVS 2010 */
  37. namespace cv {
  38. typedef signed int int32_t;
  39. typedef unsigned int uint32_t;
  40. }
  41. #elif defined(_MSC_VER) || __cplusplus >= 201103L
  42. #include <cstdint>
  43. #else
  44. #include <stdint.h>
  45. #endif
  46. namespace cv
  47. {
  48. /** @addtogroup core_utils_softfloat
  49. [SoftFloat](http://www.jhauser.us/arithmetic/SoftFloat.html) is a software implementation
  50. of floating-point calculations according to IEEE 754 standard.
  51. All calculations are done in integers, that's why they are machine-independent and bit-exact.
  52. This library can be useful in accuracy-critical parts like look-up tables generation, tests, etc.
  53. OpenCV contains a subset of SoftFloat partially rewritten to C++.
  54. ### Types
  55. There are two basic types: @ref softfloat and @ref softdouble.
  56. These types are binary compatible with float and double types respectively
  57. and support conversions to/from them.
  58. Other types from original SoftFloat library like fp16 or fp128 were thrown away
  59. as well as quiet/signaling NaN support, on-the-fly rounding mode switch
  60. and exception flags (though exceptions can be implemented in the future).
  61. ### Operations
  62. Both types support the following:
  63. - Construction from signed and unsigned 32-bit and 64 integers,
  64. float/double or raw binary representation
  65. - Conversions betweeen each other, to float or double and to int
  66. using @ref cvRound, @ref cvTrunc, @ref cvFloor, @ref cvCeil or a bunch of
  67. saturate_cast functions
  68. - Add, subtract, multiply, divide, remainder, square root, FMA with absolute precision
  69. - Comparison operations
  70. - Explicit sign, exponent and significand manipulation through get/set methods,
  71. number state indicators (isInf, isNan, isSubnormal)
  72. - Type-specific constants like eps, minimum/maximum value, best pi approximation, etc.
  73. - min(), max(), abs(), exp(), log() and pow() functions
  74. */
  75. //! @{
  76. struct softfloat;
  77. struct softdouble;
  78. struct CV_EXPORTS softfloat
  79. {
  80. public:
  81. /** @brief Default constructor */
  82. softfloat() { v = 0; }
  83. /** @brief Copy constructor */
  84. softfloat( const softfloat& c) { v = c.v; }
  85. /** @brief Assign constructor */
  86. softfloat& operator=( const softfloat& c )
  87. {
  88. if(&c != this) v = c.v;
  89. return *this;
  90. }
  91. /** @brief Construct from raw
  92. Builds new value from raw binary representation
  93. */
  94. static const softfloat fromRaw( const uint32_t a ) { softfloat x; x.v = a; return x; }
  95. /** @brief Construct from integer */
  96. explicit softfloat( const uint32_t );
  97. explicit softfloat( const uint64_t );
  98. explicit softfloat( const int32_t );
  99. explicit softfloat( const int64_t );
  100. /** @brief Construct from float */
  101. explicit softfloat( const float a ) { Cv32suf s; s.f = a; v = s.u; }
  102. /** @brief Type casts */
  103. operator softdouble() const;
  104. operator float() const { Cv32suf s; s.u = v; return s.f; }
  105. /** @brief Basic arithmetics */
  106. softfloat operator + (const softfloat&) const;
  107. softfloat operator - (const softfloat&) const;
  108. softfloat operator * (const softfloat&) const;
  109. softfloat operator / (const softfloat&) const;
  110. softfloat operator - () const { softfloat x; x.v = v ^ (1U << 31); return x; }
  111. /** @brief Remainder operator
  112. A quote from original SoftFloat manual:
  113. > The IEEE Standard remainder operation computes the value
  114. > a - n * b, where n is the integer closest to a / b.
  115. > If a / b is exactly halfway between two integers, n is the even integer
  116. > closest to a / b. The IEEE Standard’s remainder operation is always exact and so requires no rounding.
  117. > Depending on the relative magnitudes of the operands, the remainder functions
  118. > can take considerably longer to execute than the other SoftFloat functions.
  119. > This is an inherent characteristic of the remainder operation itself and is not a flaw
  120. > in the SoftFloat implementation.
  121. */
  122. softfloat operator % (const softfloat&) const;
  123. softfloat& operator += (const softfloat& a) { *this = *this + a; return *this; }
  124. softfloat& operator -= (const softfloat& a) { *this = *this - a; return *this; }
  125. softfloat& operator *= (const softfloat& a) { *this = *this * a; return *this; }
  126. softfloat& operator /= (const softfloat& a) { *this = *this / a; return *this; }
  127. softfloat& operator %= (const softfloat& a) { *this = *this % a; return *this; }
  128. /** @brief Comparison operations
  129. - Any operation with NaN produces false
  130. + The only exception is when x is NaN: x != y for any y.
  131. - Positive and negative zeros are equal
  132. */
  133. bool operator == ( const softfloat& ) const;
  134. bool operator != ( const softfloat& ) const;
  135. bool operator > ( const softfloat& ) const;
  136. bool operator >= ( const softfloat& ) const;
  137. bool operator < ( const softfloat& ) const;
  138. bool operator <= ( const softfloat& ) const;
  139. /** @brief NaN state indicator */
  140. inline bool isNaN() const { return (v & 0x7fffffff) > 0x7f800000; }
  141. /** @brief Inf state indicator */
  142. inline bool isInf() const { return (v & 0x7fffffff) == 0x7f800000; }
  143. /** @brief Subnormal number indicator */
  144. inline bool isSubnormal() const { return ((v >> 23) & 0xFF) == 0; }
  145. /** @brief Get sign bit */
  146. inline bool getSign() const { return (v >> 31) != 0; }
  147. /** @brief Construct a copy with new sign bit */
  148. inline softfloat setSign(bool sign) const { softfloat x; x.v = (v & ((1U << 31) - 1)) | ((uint32_t)sign << 31); return x; }
  149. /** @brief Get 0-based exponent */
  150. inline int getExp() const { return ((v >> 23) & 0xFF) - 127; }
  151. /** @brief Construct a copy with new 0-based exponent */
  152. inline softfloat setExp(int e) const { softfloat x; x.v = (v & 0x807fffff) | (((e + 127) & 0xFF) << 23 ); return x; }
  153. /** @brief Get a fraction part
  154. Returns a number 1 <= x < 2 with the same significand
  155. */
  156. inline softfloat getFrac() const
  157. {
  158. uint_fast32_t vv = (v & 0x007fffff) | (127 << 23);
  159. return softfloat::fromRaw(vv);
  160. }
  161. /** @brief Construct a copy with provided significand
  162. Constructs a copy of a number with significand taken from parameter
  163. */
  164. inline softfloat setFrac(const softfloat& s) const
  165. {
  166. softfloat x;
  167. x.v = (v & 0xff800000) | (s.v & 0x007fffff);
  168. return x;
  169. }
  170. /** @brief Zero constant */
  171. static softfloat zero() { return softfloat::fromRaw( 0 ); }
  172. /** @brief Positive infinity constant */
  173. static softfloat inf() { return softfloat::fromRaw( 0xFF << 23 ); }
  174. /** @brief Default NaN constant */
  175. static softfloat nan() { return softfloat::fromRaw( 0x7fffffff ); }
  176. /** @brief One constant */
  177. static softfloat one() { return softfloat::fromRaw( 127 << 23 ); }
  178. /** @brief Smallest normalized value */
  179. static softfloat min() { return softfloat::fromRaw( 0x01 << 23 ); }
  180. /** @brief Difference between 1 and next representable value */
  181. static softfloat eps() { return softfloat::fromRaw( (127 - 23) << 23 ); }
  182. /** @brief Biggest finite value */
  183. static softfloat max() { return softfloat::fromRaw( (0xFF << 23) - 1 ); }
  184. /** @brief Correct pi approximation */
  185. static softfloat pi() { return softfloat::fromRaw( 0x40490fdb ); }
  186. uint32_t v;
  187. };
  188. /*----------------------------------------------------------------------------
  189. *----------------------------------------------------------------------------*/
  190. struct CV_EXPORTS softdouble
  191. {
  192. public:
  193. /** @brief Default constructor */
  194. softdouble() : v(0) { }
  195. /** @brief Copy constructor */
  196. softdouble( const softdouble& c) { v = c.v; }
  197. /** @brief Assign constructor */
  198. softdouble& operator=( const softdouble& c )
  199. {
  200. if(&c != this) v = c.v;
  201. return *this;
  202. }
  203. /** @brief Construct from raw
  204. Builds new value from raw binary representation
  205. */
  206. static softdouble fromRaw( const uint64_t a ) { softdouble x; x.v = a; return x; }
  207. /** @brief Construct from integer */
  208. explicit softdouble( const uint32_t );
  209. explicit softdouble( const uint64_t );
  210. explicit softdouble( const int32_t );
  211. explicit softdouble( const int64_t );
  212. /** @brief Construct from double */
  213. explicit softdouble( const double a ) { Cv64suf s; s.f = a; v = s.u; }
  214. /** @brief Type casts */
  215. operator softfloat() const;
  216. operator double() const { Cv64suf s; s.u = v; return s.f; }
  217. /** @brief Basic arithmetics */
  218. softdouble operator + (const softdouble&) const;
  219. softdouble operator - (const softdouble&) const;
  220. softdouble operator * (const softdouble&) const;
  221. softdouble operator / (const softdouble&) const;
  222. softdouble operator - () const { softdouble x; x.v = v ^ (1ULL << 63); return x; }
  223. /** @brief Remainder operator
  224. A quote from original SoftFloat manual:
  225. > The IEEE Standard remainder operation computes the value
  226. > a - n * b, where n is the integer closest to a / b.
  227. > If a / b is exactly halfway between two integers, n is the even integer
  228. > closest to a / b. The IEEE Standard’s remainder operation is always exact and so requires no rounding.
  229. > Depending on the relative magnitudes of the operands, the remainder functions
  230. > can take considerably longer to execute than the other SoftFloat functions.
  231. > This is an inherent characteristic of the remainder operation itself and is not a flaw
  232. > in the SoftFloat implementation.
  233. */
  234. softdouble operator % (const softdouble&) const;
  235. softdouble& operator += (const softdouble& a) { *this = *this + a; return *this; }
  236. softdouble& operator -= (const softdouble& a) { *this = *this - a; return *this; }
  237. softdouble& operator *= (const softdouble& a) { *this = *this * a; return *this; }
  238. softdouble& operator /= (const softdouble& a) { *this = *this / a; return *this; }
  239. softdouble& operator %= (const softdouble& a) { *this = *this % a; return *this; }
  240. /** @brief Comparison operations
  241. - Any operation with NaN produces false
  242. + The only exception is when x is NaN: x != y for any y.
  243. - Positive and negative zeros are equal
  244. */
  245. bool operator == ( const softdouble& ) const;
  246. bool operator != ( const softdouble& ) const;
  247. bool operator > ( const softdouble& ) const;
  248. bool operator >= ( const softdouble& ) const;
  249. bool operator < ( const softdouble& ) const;
  250. bool operator <= ( const softdouble& ) const;
  251. /** @brief NaN state indicator */
  252. inline bool isNaN() const { return (v & 0x7fffffffffffffff) > 0x7ff0000000000000; }
  253. /** @brief Inf state indicator */
  254. inline bool isInf() const { return (v & 0x7fffffffffffffff) == 0x7ff0000000000000; }
  255. /** @brief Subnormal number indicator */
  256. inline bool isSubnormal() const { return ((v >> 52) & 0x7FF) == 0; }
  257. /** @brief Get sign bit */
  258. inline bool getSign() const { return (v >> 63) != 0; }
  259. /** @brief Construct a copy with new sign bit */
  260. softdouble setSign(bool sign) const { softdouble x; x.v = (v & ((1ULL << 63) - 1)) | ((uint_fast64_t)(sign) << 63); return x; }
  261. /** @brief Get 0-based exponent */
  262. inline int getExp() const { return ((v >> 52) & 0x7FF) - 1023; }
  263. /** @brief Construct a copy with new 0-based exponent */
  264. inline softdouble setExp(int e) const
  265. {
  266. softdouble x;
  267. x.v = (v & 0x800FFFFFFFFFFFFF) | ((uint_fast64_t)((e + 1023) & 0x7FF) << 52);
  268. return x;
  269. }
  270. /** @brief Get a fraction part
  271. Returns a number 1 <= x < 2 with the same significand
  272. */
  273. inline softdouble getFrac() const
  274. {
  275. uint_fast64_t vv = (v & 0x000FFFFFFFFFFFFF) | ((uint_fast64_t)(1023) << 52);
  276. return softdouble::fromRaw(vv);
  277. }
  278. /** @brief Construct a copy with provided significand
  279. Constructs a copy of a number with significand taken from parameter
  280. */
  281. inline softdouble setFrac(const softdouble& s) const
  282. {
  283. softdouble x;
  284. x.v = (v & 0xFFF0000000000000) | (s.v & 0x000FFFFFFFFFFFFF);
  285. return x;
  286. }
  287. /** @brief Zero constant */
  288. static softdouble zero() { return softdouble::fromRaw( 0 ); }
  289. /** @brief Positive infinity constant */
  290. static softdouble inf() { return softdouble::fromRaw( (uint_fast64_t)(0x7FF) << 52 ); }
  291. /** @brief Default NaN constant */
  292. static softdouble nan() { return softdouble::fromRaw( CV_BIG_INT(0x7FFFFFFFFFFFFFFF) ); }
  293. /** @brief One constant */
  294. static softdouble one() { return softdouble::fromRaw( (uint_fast64_t)( 1023) << 52 ); }
  295. /** @brief Smallest normalized value */
  296. static softdouble min() { return softdouble::fromRaw( (uint_fast64_t)( 0x01) << 52 ); }
  297. /** @brief Difference between 1 and next representable value */
  298. static softdouble eps() { return softdouble::fromRaw( (uint_fast64_t)( 1023 - 52 ) << 52 ); }
  299. /** @brief Biggest finite value */
  300. static softdouble max() { return softdouble::fromRaw( ((uint_fast64_t)(0x7FF) << 52) - 1 ); }
  301. /** @brief Correct pi approximation */
  302. static softdouble pi() { return softdouble::fromRaw( CV_BIG_INT(0x400921FB54442D18) ); }
  303. uint64_t v;
  304. };
  305. /*----------------------------------------------------------------------------
  306. *----------------------------------------------------------------------------*/
  307. /** @brief Fused Multiplication and Addition
  308. Computes (a*b)+c with single rounding
  309. */
  310. CV_EXPORTS softfloat mulAdd( const softfloat& a, const softfloat& b, const softfloat & c);
  311. CV_EXPORTS softdouble mulAdd( const softdouble& a, const softdouble& b, const softdouble& c);
  312. /** @brief Square root */
  313. CV_EXPORTS softfloat sqrt( const softfloat& a );
  314. CV_EXPORTS softdouble sqrt( const softdouble& a );
  315. }
  316. /*----------------------------------------------------------------------------
  317. | Ported from OpenCV and added for usability
  318. *----------------------------------------------------------------------------*/
  319. /** @brief Truncates number to integer with minimum magnitude */
  320. CV_EXPORTS int cvTrunc(const cv::softfloat& a);
  321. CV_EXPORTS int cvTrunc(const cv::softdouble& a);
  322. /** @brief Rounds a number to nearest even integer */
  323. CV_EXPORTS int cvRound(const cv::softfloat& a);
  324. CV_EXPORTS int cvRound(const cv::softdouble& a);
  325. /** @brief Rounds a number down to integer */
  326. CV_EXPORTS int cvFloor(const cv::softfloat& a);
  327. CV_EXPORTS int cvFloor(const cv::softdouble& a);
  328. /** @brief Rounds number up to integer */
  329. CV_EXPORTS int cvCeil(const cv::softfloat& a);
  330. CV_EXPORTS int cvCeil(const cv::softdouble& a);
  331. namespace cv
  332. {
  333. /** @brief Saturate casts */
  334. template<typename _Tp> static inline _Tp saturate_cast(softfloat a) { return _Tp(a); }
  335. template<typename _Tp> static inline _Tp saturate_cast(softdouble a) { return _Tp(a); }
  336. template<> inline uchar saturate_cast<uchar>(softfloat a) { return (uchar)std::max(std::min(cvRound(a), (int)UCHAR_MAX), 0); }
  337. template<> inline uchar saturate_cast<uchar>(softdouble a) { return (uchar)std::max(std::min(cvRound(a), (int)UCHAR_MAX), 0); }
  338. template<> inline schar saturate_cast<schar>(softfloat a) { return (schar)std::min(std::max(cvRound(a), (int)SCHAR_MIN), (int)SCHAR_MAX); }
  339. template<> inline schar saturate_cast<schar>(softdouble a) { return (schar)std::min(std::max(cvRound(a), (int)SCHAR_MIN), (int)SCHAR_MAX); }
  340. template<> inline ushort saturate_cast<ushort>(softfloat a) { return (ushort)std::max(std::min(cvRound(a), (int)USHRT_MAX), 0); }
  341. template<> inline ushort saturate_cast<ushort>(softdouble a) { return (ushort)std::max(std::min(cvRound(a), (int)USHRT_MAX), 0); }
  342. template<> inline short saturate_cast<short>(softfloat a) { return (short)std::min(std::max(cvRound(a), (int)SHRT_MIN), (int)SHRT_MAX); }
  343. template<> inline short saturate_cast<short>(softdouble a) { return (short)std::min(std::max(cvRound(a), (int)SHRT_MIN), (int)SHRT_MAX); }
  344. template<> inline int saturate_cast<int>(softfloat a) { return cvRound(a); }
  345. template<> inline int saturate_cast<int>(softdouble a) { return cvRound(a); }
  346. /** @brief Saturate cast to unsigned integer
  347. We intentionally do not clip negative numbers, to make -1 become 0xffffffff etc.
  348. */
  349. template<> inline unsigned saturate_cast<unsigned>(softfloat a) { return cvRound(a); }
  350. template<> inline unsigned saturate_cast<unsigned>(softdouble a) { return cvRound(a); }
  351. /** @brief Min and Max functions */
  352. inline softfloat min(const softfloat& a, const softfloat& b) { return (a > b) ? b : a; }
  353. inline softdouble min(const softdouble& a, const softdouble& b) { return (a > b) ? b : a; }
  354. inline softfloat max(const softfloat& a, const softfloat& b) { return (a > b) ? a : b; }
  355. inline softdouble max(const softdouble& a, const softdouble& b) { return (a > b) ? a : b; }
  356. /** @brief Absolute value */
  357. inline softfloat abs( softfloat a) { softfloat x; x.v = a.v & ((1U << 31) - 1); return x; }
  358. inline softdouble abs( softdouble a) { softdouble x; x.v = a.v & ((1ULL << 63) - 1); return x; }
  359. /** @brief Exponent
  360. Special cases:
  361. - exp(NaN) is NaN
  362. - exp(-Inf) == 0
  363. - exp(+Inf) == +Inf
  364. */
  365. CV_EXPORTS softfloat exp( const softfloat& a);
  366. CV_EXPORTS softdouble exp( const softdouble& a);
  367. /** @brief Natural logarithm
  368. Special cases:
  369. - log(NaN), log(x < 0) are NaN
  370. - log(0) == -Inf
  371. */
  372. CV_EXPORTS softfloat log( const softfloat& a );
  373. CV_EXPORTS softdouble log( const softdouble& a );
  374. /** @brief Raising to the power
  375. Special cases:
  376. - x**NaN is NaN for any x
  377. - ( |x| == 1 )**Inf is NaN
  378. - ( |x| > 1 )**+Inf or ( |x| < 1 )**-Inf is +Inf
  379. - ( |x| > 1 )**-Inf or ( |x| < 1 )**+Inf is 0
  380. - x ** 0 == 1 for any x
  381. - x ** 1 == 1 for any x
  382. - NaN ** y is NaN for any other y
  383. - Inf**(y < 0) == 0
  384. - Inf ** y is +Inf for any other y
  385. - (x < 0)**y is NaN for any other y if x can't be correctly rounded to integer
  386. - 0 ** 0 == 1
  387. - 0 ** (y < 0) is +Inf
  388. - 0 ** (y > 0) is 0
  389. */
  390. CV_EXPORTS softfloat pow( const softfloat& a, const softfloat& b);
  391. CV_EXPORTS softdouble pow( const softdouble& a, const softdouble& b);
  392. /** @brief Cube root
  393. Special cases:
  394. - cbrt(NaN) is NaN
  395. - cbrt(+/-Inf) is +/-Inf
  396. */
  397. CV_EXPORTS softfloat cbrt( const softfloat& a );
  398. /** @brief Sine
  399. Special cases:
  400. - sin(Inf) or sin(NaN) is NaN
  401. - sin(x) == x when sin(x) is close to zero
  402. */
  403. CV_EXPORTS softdouble sin( const softdouble& a );
  404. /** @brief Cosine
  405. *
  406. Special cases:
  407. - cos(Inf) or cos(NaN) is NaN
  408. - cos(x) == +/- 1 when cos(x) is close to +/- 1
  409. */
  410. CV_EXPORTS softdouble cos( const softdouble& a );
  411. }
  412. //! @}
  413. #endif