X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fcommon_endian.c;h=45707f4ef70f14f8d4abb1df0fd6602b642438cf;hb=572ed5a20edf2e273ae377473b52bfee98eca24e;hp=81f9a79e8842cd929b0025403e95d7be38e9ec31;hpb=f27338992f0a5915ee974faea05f764c2df6f584;p=oweals%2Fgnunet.git diff --git a/src/util/common_endian.c b/src/util/common_endian.c index 81f9a79e8..45707f4ef 100644 --- a/src/util/common_endian.c +++ b/src/util/common_endian.c @@ -93,47 +93,4 @@ GNUNET_ntoh_double (double d) } -uint64_t -GNUNET_htonll_signed (int64_t n) -{ - return GNUNET_htonll (n - INT64_MIN); -} - - -int64_t -GNUNET_ntohll_signed (uint64_t n) -{ - return GNUNET_ntohll (n) + INT64_MIN; -} - - -uint32_t -GNUNET_htonl_signed (int32_t n) -{ - return htonl (n - INT32_MIN); -} - - -int32_t -GNUNET_ntohl_signed (uint32_t n) -{ - return ntohl (n) + INT32_MIN; -} - - -uint16_t -GNUNET_htons_signed (int16_t n) -{ - return htons (n - INT16_MIN); -} - - -int16_t -GNUNET_ntohs_signed (uint16_t n) -{ - return ntohs (n) + INT16_MIN; -} - - - /* end of common_endian.c */