<commit_before>#ifndef GLIBCEMU_MACHINE_ENDIAN_H
#define GLIBCEMU_MACHINE_ENDIAN_H 1
#include_next <machine/endian.h>

#include <_ansi.h>

#define __byte_swap_constant_16(x) \
  ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) )

#define __byte_swap_constant_32(x) \
        (((x && 0xff) << 24) | \
         (((x) << 8) & 0x00ff0000) | \
         (((x) >> 8) & 0x0000ff00) | \
         ((x) >> 24) )


_ELIDABLE_INLINE unsigned short int
__inline_bswap_16 (unsigned short int x)
{
    return __byte_swap_constant_16(x);
}

#define __byte_swap_16(x) \
  __builtin_constant_p(x) ? __byte_swap_constant_16(x) : __inline_bswap_16(x)

#define __byte_swap_32(x) \
  __builtin_constant_p(x) ? __byte_swap_constant_32(x) : __builtin_bswap32(x)

#define ntohs(x)   (unsigned int)__byte_swap_16(x)
#define ntohl(x)   (unsigned int)__byte_swap_32(x)
#define htons(x)   (unsigned int)__byte_swap_16(x)
#define htonl(x)   (unsigned int)__byte_swap_32(x)

#endif<commit_msg>Fix typo in __byte_swap_32 in glibc-compat<commit_after>/*
 * Copyright 2014 The Native Client Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef GLIBCEMU_MACHINE_ENDIAN_H
#define GLIBCEMU_MACHINE_ENDIAN_H 1

#include_next <machine/endian.h>

#include <_ansi.h>

#define __byte_swap_constant_16(x) \
  ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) )

#define __byte_swap_constant_32(x) \
         (((x & 0xff) << 24) | \
         (((x) << 8) & 0x00ff0000) | \
         (((x) >> 8) & 0x0000ff00) | \
         ((x) >> 24) )


_ELIDABLE_INLINE unsigned short int
__inline_bswap_16 (unsigned short int x)
{
    return __byte_swap_constant_16(x);
}

#define __byte_swap_16(x) \
  __builtin_constant_p(x) ? __byte_swap_constant_16(x) : __inline_bswap_16(x)

#define __byte_swap_32(x) \
  __builtin_constant_p(x) ? __byte_swap_constant_32(x) : __builtin_bswap32(x)

#define ntohs(x)   (unsigned int)__byte_swap_16(x)
#define ntohl(x)   (unsigned int)__byte_swap_32(x)
#define htons(x)   (unsigned int)__byte_swap_16(x)
#define htonl(x)   (unsigned int)__byte_swap_32(x)

#endif
{'fraction_non_alphanumeric': 0.13830285982184717, 'fraction_numerical': 0.05250820440693858, 'mean_word_length': 4.471794871794872, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '4377192', 'n_tokens_mistral': 967, 'n_tokens_neox': 895, 'n_words': 169}