<commit_before>/* This file is part of Metallic, a C++ library for WebAssembly.
 *
 * Copyright (C) 2017 <NAME> <<EMAIL>>
 *
 * This Source Code Form is subject to the terms of the Mozilla
 * Public License v. 2.0. If a copy of the MPL was not distributed
 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/
 */
#ifndef _STRING_H
#define _STRING_H

#ifdef __cplusplus
extern "C" {
#endif

int memcmp(const void*, const void*, size_t);
void* memcpy(void*__restrict, const void*__restrict, size_t);
void* memmove(void*, const void*, size_t);
void* memset(void*, int, size_t);

#ifdef _GNU_SOURCE
void* __mempcpy(void*__restrict, const void*__restrict, size_t);

inline void* mempcpy(void*__restrict destination, const void*__restrict source, size_t length)
{ return __mempcpy(destination, source, length); }
#endif

#ifdef __cplusplus
namespace __metallic {
#endif

void* memchr(const void*, int, size_t);

#ifdef __cplusplus
} // namespace __metallic
} // extern "C"

inline const void* memchr(const void* source, int c, size_t length) { return __metallic::memchr(source, c, length); }
inline void* memchr(void* source, int c, size_t length) { return __metallic::memchr(source, c, length); }
#endif

#endif /* string.h */
<commit_msg>Use __builtin_memchr to prevent name pollution<commit_after>/* This file is part of Metallic, a C++ library for WebAssembly.
 *
 * Copyright (C) 2017 <NAME> <<EMAIL>>
 *
 * This Source Code Form is subject to the terms of the Mozilla
 * Public License v. 2.0. If a copy of the MPL was not distributed
 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/
 */
#ifndef _STRING_H
#define _STRING_H

#ifdef __cplusplus
extern "C" {
#endif

int memcmp(const void*, const void*, size_t);
void* memcpy(void*__restrict, const void*__restrict, size_t);
void* memmove(void*, const void*, size_t);
void* memset(void*, int, size_t);

#ifdef _GNU_SOURCE
void* __mempcpy(void*__restrict, const void*__restrict, size_t);

inline void* mempcpy(void*__restrict destination, const void*__restrict source, size_t length)
{ return __mempcpy(destination, source, length); }
#endif

#ifdef __cplusplus
} // extern "C"

inline const void* memchr(const void* source, int c, size_t length) { return __builtin_memchr(source, c, length); }
inline void* memchr(void* source, int c, size_t length) { return __builtin_memchr(source, c, length); }
#else
void* memchr(const void*, int, size_t);
#endif

#endif /* string.h */

{'fraction_non_alphanumeric': 0.12164361269324654, 'fraction_numerical': 0.006509357200976403, 'mean_word_length': 5.162907268170426, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6091890', 'n_tokens_mistral': 854, 'n_tokens_neox': 832, 'n_words': 291}