aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_endian.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-05 15:17:18 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-05 15:17:18 +0000
commit74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e (patch)
tree1e42c621a5fa6f37ddca90c9a6d61c14a269d24f /src/util/common_endian.c
parent33dfaada638d98163e265e46ca527a6630437613 (diff)
downloadgnunet-74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e.tar.gz
gnunet-74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e.zip
-docu
Diffstat (limited to 'src/util/common_endian.c')
-rw-r--r--src/util/common_endian.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/common_endian.c b/src/util/common_endian.c
index d7e11ac0c..1a2ddd9c1 100644
--- a/src/util/common_endian.c
+++ b/src/util/common_endian.c
@@ -50,6 +50,11 @@ GNUNET_htonll (uint64_t n)
50} 50}
51 51
52 52
53/**
54 * Convert double to network-byte-order.
55 * @param n the value in network byte order
56 * @return the same value in host byte order
57 */
53double 58double
54GNUNET_hton_double (double d) 59GNUNET_hton_double (double d)
55{ 60{
@@ -63,6 +68,11 @@ GNUNET_hton_double (double d)
63} 68}
64 69
65 70
71/**
72 * Convert double to host-byte-order
73 * @param d the value in network byte order
74 * @return the same value in host byte order
75 */
66double 76double
67GNUNET_ntoh_double (double d) 77GNUNET_ntoh_double (double d)
68{ 78{