Result:
found 6 distributions and 12 files matching your query ! ( run in 0.800 )


Alien-Libjio

 view release on metacpan or  search on metacpan

libjio/libjio/common.c  view on Meta::CPAN

{
	snprintf(jtfile, PATH_MAX, "%s/%u", fs->jdir, tid);
}


/* The ntohll() and htonll() functions are not standard, so we define them
 * using an UGLY trick because there is no standard way to check for
 * endianness at runtime. */

/** Convert a 64-bit value between network byte order and host byte order. */
uint64_t ntohll(uint64_t x)
{
	static int endianness = 0;

	/* determine the endianness by checking how htonl() behaves; use -1
	 * for little endian and 1 for big endian */

 view all matches for this distribution


CBOR-Free

 view release on metacpan or  search on metacpan

cbor_free_decode.c  view on Meta::CPAN

    major_type == CBOR_TYPE_UTF8 \
    || decstate->string_decode_mode == CBF_STRING_DECODE_ALWAYS

//----------------------------------------------------------------------

// Basically ntohll(), but it accepts a pointer.
static inline UV _buffer_u64_to_uv( unsigned char *buffer ) {
#ifdef CBF_64BIT_INET
    return ntohll( *( (uint64_t*) buffer ) );
#else

    return (
#if IS_64_BIT
        ( ((UV) ntohl( *( (uint32_t*) buffer ) )) << 32 ) +

 view all matches for this distribution


Memcached-libmemcached

 view release on metacpan or  search on metacpan

src/libmemcached/example/byteorder.h  view on Meta::CPAN


#ifdef __cplusplus
extern "C" {
#endif

uint64_t example_ntohll(uint64_t);

uint64_t example_htonll(uint64_t);

#ifdef __cplusplus
}

 view all matches for this distribution


Neo4j-Client

 view release on metacpan or  search on metacpan

build/lib/src/util.h  view on Meta::CPAN

#  endif
#endif

#ifndef HAVE_BE64TOH
#  ifdef HAVE_NTOHLL
#    define be64toh(l) ntohll(l)
#  elif HAVE_OSSWAPBIGTOHOSTINT64
#    define be64toh(l) OSSwapBigToHostInt64(l)
#  elif WORDS_BIGENDIAN
#    define be64toh(l) (l)
#  elif HAVE_BSWAP_64

 view all matches for this distribution


Thrift-XS

 view release on metacpan or  search on metacpan

BinaryProtocol.xs  view on Meta::CPAN

  READ_SV(p, tmp, 8);
  tmps = SvPVX(tmp);
  RETVAL += 8;

  bits = *(uint64_t *)tmps;
  bits = ntohll(bits);

  union {
    uint64_t from;
    double to;
  } u;

 view all matches for this distribution


Zonemaster-LDNS

 view release on metacpan or  search on metacpan

ldns/str2host.c  view on Meta::CPAN

}

#ifdef __BYTE_ORDER__
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#  define htonll(x) (x)
#  define ntohll(x) (x)
# else
#  define htonll(x) (((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
#  define ntohll(x) (((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
# endif
#else
# define htonll(x) ((1==htonl(1)) ? (x) : ((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
# define ntohll(x) ((1==ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
#endif

ldns_status
ldns_str2rdf_ipn(ldns_rdf **rd, const char *ipnstr)
{

 view all matches for this distribution


( run in 0.800 second using v1.01-cache-2.11-cpan-800906f7e73 )