diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-05 15:17:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-05 15:17:18 +0000 |
commit | 74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e (patch) | |
tree | 1e42c621a5fa6f37ddca90c9a6d61c14a269d24f /src/include/gnunet_common.h | |
parent | 33dfaada638d98163e265e46ca527a6630437613 (diff) | |
download | gnunet-74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e.tar.gz gnunet-74684dd41c5e9dd2cab0e53ca831ac13e38e6b4e.zip |
-docu
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index cecc94c9e..76b26ddff 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -496,6 +496,21 @@ GNUNET_ntohll (uint64_t n); | |||
496 | uint64_t | 496 | uint64_t |
497 | GNUNET_htonll (uint64_t n); | 497 | GNUNET_htonll (uint64_t n); |
498 | 498 | ||
499 | /** | ||
500 | * Convert double to network-byte-order. | ||
501 | * @param d the value in network byte order | ||
502 | * @return the same value in host byte order | ||
503 | */ | ||
504 | double | ||
505 | GNUNET_hton_double (double in); | ||
506 | |||
507 | /** | ||
508 | * Convert double to host-byte-order | ||
509 | * @param d the value in network byte order | ||
510 | * @return the same value in host byte order | ||
511 | */ | ||
512 | double | ||
513 | GNUNET_ntoh_double (double in); | ||
499 | 514 | ||
500 | /* ************************* allocation functions ****************** */ | 515 | /* ************************* allocation functions ****************** */ |
501 | 516 | ||