<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc.  All rights reserved."

#ifndef _TOKU_HTONL_H
#define _TOKU_HTONL_H

#if !__linux__ && !__FreeBSD__ && !__sun__
//#error
#endif


#include <stdint.h>
#include <arpa/inet.h>

static inline uint32_t toku_htonl(uint32_t i) {
    return htonl(i);
}

static inline uint32_t toku_ntohl(uint32_t i) {
    return ntohl(i);
}


#endif<commit_msg>refs #5629 add 64 bit host to net ordering<commit_after>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc.  All rights reserved."

#ifndef _TOKU_HTONL_H
#define _TOKU_HTONL_H

#if !__linux__ && !__FreeBSD__ && !__sun__
//#error
#endif


#include <stdint.h>
#include <arpa/inet.h>

static inline uint32_t toku_htonl(uint32_t i) {
    return htonl(i);
}

static inline uint32_t toku_ntohl(uint32_t i) {
    return ntohl(i);
}

static inline uint64_t toku_htonl64(uint64_t i) {
    uint64_t a = ((uint64_t) htonl(i & 0xFFFFFFFF)) << 32;
    uint64_t b = htonl(i >> 32);
    return a | b;
}

static inline uint64_t toku_ntohl64(uint64_t i) {
    uint64_t a = ((uint64_t) ntohl(i & 0xFFFFFFFF)) << 32;
    uint64_t b = ntohl(i >> 32);
    return a | b;
}

#endif
{'fraction_non_alphanumeric': 0.15696022727272727, 'fraction_numerical': 0.056818181818181816, 'mean_word_length': 4.105072463768116, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6853676', 'n_tokens_mistral': 674, 'n_tokens_neox': 615, 'n_words': 141}