mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:13:34 +08:00
Specialization for CompileTimeIntSqrt<1>
This commit is contained in:
@@ -180,6 +180,7 @@ To coerceOrFallback(const From& from)
|
|||||||
* Useful for operations on square matrices.
|
* Useful for operations on square matrices.
|
||||||
*/
|
*/
|
||||||
template <unsigned Value> struct UAVCAN_EXPORT CompileTimeIntSqrt;
|
template <unsigned Value> struct UAVCAN_EXPORT CompileTimeIntSqrt;
|
||||||
|
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<1> { enum { Result = 1 }; };
|
||||||
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<4> { enum { Result = 2 }; };
|
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<4> { enum { Result = 2 }; };
|
||||||
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<9> { enum { Result = 3 }; };
|
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<9> { enum { Result = 3 }; };
|
||||||
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<16> { enum { Result = 4 }; };
|
template <> struct UAVCAN_EXPORT CompileTimeIntSqrt<16> { enum { Result = 4 }; };
|
||||||
|
|||||||
Reference in New Issue
Block a user