0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-01 03:18:54 +01:00

ircd::leb128: Add RB_GENERIC condition on platform intrinsics.

This commit is contained in:
Jason Volk 2019-12-21 14:37:41 -08:00
parent 189b5cfbcd
commit 45e5104a87

View file

@ -105,7 +105,7 @@ noexcept
/// counting the trailing (least significant) zero bits; then add one for /// counting the trailing (least significant) zero bits; then add one for
/// the terminating byte itself. Note doc sez if mask had all zero bits then /// the terminating byte itself. Note doc sez if mask had all zero bits then
/// the result of clz/ctz is undefined. /// the result of clz/ctz is undefined.
#if defined(__MMX__) #if defined(__MMX__) && !defined(RB_GENERIC)
template<> template<>
inline size_t inline size_t
ircd::uleb128::length(const uint64_t &val) ircd::uleb128::length(const uint64_t &val)
@ -122,7 +122,7 @@ noexcept
} }
#endif #endif
#if defined(__SSE2__) #if defined(__SSE2__) && !defined(RB_GENERIC)
template<> template<>
inline size_t inline size_t
ircd::uleb128::length(const uint128_t &val) ircd::uleb128::length(const uint128_t &val)