<commit_before>/*  This file is part of the Vc library.

    Copyright (C) 2009-2011 <NAME> <<EMAIL>>

    Vc is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation, either version 3 of
    the License, or (at your option) any later version.

    Vc is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with Vc.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef VC_AVX_LIMITS_H
#define VC_AVX_LIMITS_H

#include "intrinsics.h"
#include "types.h"

#if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103
# define _VC_NOEXCEPT noexcept
#else
# define _VC_NOEXCEPT throw()
#endif

namespace std
{
#define _VC_NUM_LIM(T, _max, _min) \
template<> struct numeric_limits<Vc::SSE::Vector<T> > : public numeric_limits<T> \
{ \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> max()           _VC_NOEXCEPT { return _max; } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> min()           _VC_NOEXCEPT { return _min; } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> lowest()        _VC_NOEXCEPT { return min(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> epsilon()       _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> round_error()   _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> infinity()      _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> quiet_NaN()     _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> signaling_NaN() _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::SSE::Vector<T> denorm_min()    _VC_NOEXCEPT { return Vc::SSE::Vector<T>::Zero(); } \
}
_VC_NUM_LIM(unsigned short, Vc::AVX::_mm_setallone_si128(), _mm_setzero_si128());
_VC_NUM_LIM(         short, _mm_srli_epi16(Vc::AVX::_mm_setallone_si128(), 1), Vc::AVX::_mm_setmin_epi16());
_VC_NUM_LIM(  unsigned int, Vc::AVX::_mm256_setallone_si256(), _mm256_setzero_si256());
_VC_NUM_LIM(           int, _mm256_srli_epi32(Vc::AVX::_mm256_setallone_si256(), 1), Vc::AVX::_mm256_setmin_epi32());
#undef _VC_NUM_LIM

} // namespace std<commit_msg>fix copy-paste error<commit_after>/*  This file is part of the Vc library.

    Copyright (C) 2009-2011 <NAME> <<EMAIL>>

    Vc is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation, either version 3 of
    the License, or (at your option) any later version.

    Vc is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with Vc.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef VC_AVX_LIMITS_H
#define VC_AVX_LIMITS_H

#include "intrinsics.h"
#include "types.h"

#if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103
# define _VC_NOEXCEPT noexcept
#else
# define _VC_NOEXCEPT throw()
#endif

namespace std
{
#define _VC_NUM_LIM(T, _max, _min) \
template<> struct numeric_limits<Vc::AVX::Vector<T> > : public numeric_limits<T> \
{ \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> max()           _VC_NOEXCEPT { return _max; } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> min()           _VC_NOEXCEPT { return _min; } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> lowest()        _VC_NOEXCEPT { return min(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> epsilon()       _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> round_error()   _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> infinity()      _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> quiet_NaN()     _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> signaling_NaN() _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
    static inline INTRINSIC CONST Vc::AVX::Vector<T> denorm_min()    _VC_NOEXCEPT { return Vc::AVX::Vector<T>::Zero(); } \
}
_VC_NUM_LIM(unsigned short, Vc::AVX::_mm_setallone_si128(), _mm_setzero_si128());
_VC_NUM_LIM(         short, _mm_srli_epi16(Vc::AVX::_mm_setallone_si128(), 1), Vc::AVX::_mm_setmin_epi16());
_VC_NUM_LIM(  unsigned int, Vc::AVX::_mm256_setallone_si256(), _mm256_setzero_si256());
_VC_NUM_LIM(           int, _mm256_srli_epi32(Vc::AVX::_mm256_setallone_si256(), 1), Vc::AVX::_mm256_setmin_epi32());
#undef _VC_NUM_LIM

} // namespace std
{'fraction_non_alphanumeric': 0.1250716058812297, 'fraction_numerical': 0.022531983960282605, 'mean_word_length': 4.433609958506224, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '47615', 'n_tokens_mistral': 1978, 'n_tokens_neox': 1844, 'n_words': 497}