[Freeswitch-svn] [commit] r2964 - freeswitch/trunk/libs/srtp/crypto/include
Freeswitch SVN
mikej at freeswitch.org
Tue Oct 3 08:38:13 EDT 2006
Author: mikej
Date: Tue Oct 3 08:38:12 2006
New Revision: 2964
Modified:
freeswitch/trunk/libs/srtp/crypto/include/datatypes.h
Log:
resolve unused function warning, this probably works better as a macro anyhow.
Modified: freeswitch/trunk/libs/srtp/crypto/include/datatypes.h
==============================================================================
--- freeswitch/trunk/libs/srtp/crypto/include/datatypes.h (original)
+++ freeswitch/trunk/libs/srtp/crypto/include/datatypes.h Tue Oct 3 08:38:12 2006
@@ -399,16 +399,12 @@
# endif
# define be32_to_cpu(x) ntohl((x))
-static inline uint64_t be64_to_cpu(uint64_t v) {
# ifdef NO_64BIT_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
- /* use the native 64-bit math */
- v= (be32_to_cpu((uint32_t)(v >> 32))) | (((uint64_t)be32_to_cpu((uint32_t)v)) << 32);
+# define be64_to_cpu(v) ((ntohl((uint32_t)(v >> 32))) | (((uint64_t)ntohl((uint32_t)v)) << 32))
# endif
- return v;
-}
#endif /* ! SRTP_KERNEL_LINUX */
More information about the Freeswitch-svn
mailing list