mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace numext::as_uint with numext::bit_cast<numext::uint32_t>
This commit is contained in:
@@ -96,9 +96,6 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Tgt bit_cast(const Src& src) {
|
||||
memcpy(&tgt, &src, sizeof(Tgt));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
/** \internal extract the bits of the float \a x */
|
||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC numext::uint32_t as_uint(float x) { return bit_cast<numext::uint32_t>(x); }
|
||||
} // namespace numext
|
||||
|
||||
/** \class NumTraits
|
||||
|
||||
Reference in New Issue
Block a user