gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19007 - in gnunet/src: include util


From: gnunet
Subject: [GNUnet-SVN] r19007 - in gnunet/src: include util
Date: Thu, 5 Jan 2012 16:17:18 +0100

Author: grothoff
Date: 2012-01-05 16:17:18 +0100 (Thu, 05 Jan 2012)
New Revision: 19007

Modified:
   gnunet/src/include/gnunet_common.h
   gnunet/src/util/common_endian.c
Log:
-docu

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2012-01-05 15:16:03 UTC (rev 19006)
+++ gnunet/src/include/gnunet_common.h  2012-01-05 15:17:18 UTC (rev 19007)
@@ -496,7 +496,22 @@
 uint64_t
 GNUNET_htonll (uint64_t n);
 
+/**
+ * Convert double to network-byte-order.
+ * @param d the value in network byte order
+ * @return the same value in host byte order
+ */
+double 
+GNUNET_hton_double (double in);
 
+/**
+ * Convert double to host-byte-order
+ * @param d the value in network byte order
+ * @return the same value in host byte order
+ */
+double 
+GNUNET_ntoh_double (double in);
+
 /* ************************* allocation functions ****************** */
 
 /**

Modified: gnunet/src/util/common_endian.c
===================================================================
--- gnunet/src/util/common_endian.c     2012-01-05 15:16:03 UTC (rev 19006)
+++ gnunet/src/util/common_endian.c     2012-01-05 15:17:18 UTC (rev 19007)
@@ -50,6 +50,11 @@
 }
 
 
+/**
+ * Convert double to network-byte-order.
+ * @param n the value in network byte order
+ * @return the same value in host byte order
+ */
 double 
 GNUNET_hton_double (double d) 
 {
@@ -63,6 +68,11 @@
 }
 
 
+/**
+ * Convert double to host-byte-order
+ * @param d the value in network byte order
+ * @return the same value in host byte order
+ */
 double 
 GNUNET_ntoh_double (double d) 
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]