提交 74543500 authored 作者: Jeff Lenk's avatar Jeff Lenk

missed one on last commit

上级 0a3e18a3
...@@ -409,16 +409,12 @@ static inline uint32_t be32_to_cpu(uint32_t v) { ...@@ -409,16 +409,12 @@ static inline uint32_t be32_to_cpu(uint32_t v) {
# define be32_to_cpu(x) ntohl((x)) # define be32_to_cpu(x) ntohl((x))
# endif /* HAVE_X86 */ # endif /* HAVE_X86 */
static inline uint64_t be64_to_cpu(uint64_t v) {
# ifdef NO_64BIT_MATH # ifdef NO_64BIT_MATH
/* use the make64 functions to do 64-bit math */ /* use the make64 functions to do 64-bit math */
v = make64(htonl(low32(v)),htonl(high32(v))); # define be64_to_cpu(v) (make64(htonl(low32(v)),htonl(high32(v))))
# else # else
/* use the native 64-bit math */ # define be64_to_cpu(v) ((ntohl((uint32_t)(v >> 32))) | (((uint64_t)ntohl((uint32_t)v)) << 32))
v= (uint64_t)((be32_to_cpu((uint32_t)(v >> 32))) | (((uint64_t)be32_to_cpu((uint32_t)v)) << 32));
# endif # endif
return v;
}
#endif /* ! SRTP_KERNEL_LINUX */ #endif /* ! SRTP_KERNEL_LINUX */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论