-docu
authorChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 15:17:18 +0000 (15:17 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 15:17:18 +0000 (15:17 +0000)
src/include/gnunet_common.h
src/util/common_endian.c

index cecc94c9edc5787b9aee02b2ea2bf5e1d5bd97f1..76b26ddff17d88651a3aa8c36182aee03988fa0a 100644 (file)
@@ -496,6 +496,21 @@ GNUNET_ntohll (uint64_t n);
 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 ****************** */
 
index d7e11ac0c0640b680f6fed810045ee32f9b68cdb..1a2ddd9c118d528d57bc9ca6932e5ad4eb725508 100644 (file)
@@ -50,6 +50,11 @@ GNUNET_htonll (uint64_t n)
 }
 
 
+/**
+ * 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 @@ GNUNET_hton_double (double d)
 }
 
 
+/**
+ * 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) 
 {