aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_endian.c
diff options
context:
space:
mode:
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{