head 1.1;
branch 1.1.1;
access;
symbols
netbsd-11-0-RC5:1.1.1.2
netbsd-11-0-RC4:1.1.1.2
netbsd-11-0-RC3:1.1.1.2
netbsd-11-0-RC2:1.1.1.2
netbsd-11-0-RC1:1.1.1.2
gcc-14-3-0:1.1.1.3
perseant-exfatfs-base-20250801:1.1.1.2
netbsd-11:1.1.1.2.0.2
netbsd-11-base:1.1.1.2
gcc-12-5-0:1.1.1.2
perseant-exfatfs-base-20240630:1.1.1.2
gcc-12-4-0:1.1.1.2
perseant-exfatfs:1.1.1.1.0.2
perseant-exfatfs-base:1.1.1.1
gcc-12-3-0:1.1.1.1
FSF:1.1.1;
locks; strict;
comment @ * @;
1.1
date 2023.07.30.05.21.20; author mrg; state Exp;
branches
1.1.1.1;
next ;
commitid tk6nV4mbc9nVEMyE;
1.1.1.1
date 2023.07.30.05.21.20; author mrg; state Exp;
branches
1.1.1.1.2.1;
next 1.1.1.2;
commitid tk6nV4mbc9nVEMyE;
1.1.1.2
date 2024.06.30.07.35.39; author mrg; state Exp;
branches;
next 1.1.1.3;
commitid m7BwZsPdfJvuHYfF;
1.1.1.3
date 2025.09.13.23.45.49; author mrg; state Exp;
branches;
next ;
commitid KwhwN4krNWa6XBaG;
1.1.1.1.2.1
date 2024.07.01.01.00.58; author perseant; state Exp;
branches;
next ;
commitid NkoYLLCQWWw9v4gF;
desc
@@
1.1
log
@Initial revision
@
text
@// Simd scalar ABI specific implementations -*- C++ -*-
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library 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 General Public License for more details.
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// .
#ifndef _GLIBCXX_EXPERIMENTAL_SIMD_SCALAR_H_
#define _GLIBCXX_EXPERIMENTAL_SIMD_SCALAR_H_
#if __cplusplus >= 201703L
#include
_GLIBCXX_SIMD_BEGIN_NAMESPACE
// __promote_preserving_unsigned{{{
// work around crazy semantics of unsigned integers of lower rank than int:
// Before applying an operator the operands are promoted to int. In which case
// over- or underflow is UB, even though the operand types were unsigned.
template
_GLIBCXX_SIMD_INTRINSIC constexpr decltype(auto)
__promote_preserving_unsigned(const _Tp& __x)
{
if constexpr (is_signed_v && is_unsigned_v<_Tp>)
return static_cast(__x);
else
return __x;
}
// }}}
struct _CommonImplScalar;
struct _CommonImplBuiltin;
struct _SimdImplScalar;
struct _MaskImplScalar;
// simd_abi::_Scalar {{{
struct simd_abi::_Scalar
{
template
static constexpr size_t _S_size = 1;
template
static constexpr size_t _S_full_size = 1;
template
static constexpr bool _S_is_partial = false;
struct _IsValidAbiTag : true_type {};
template
struct _IsValidSizeFor : true_type {};
template
struct _IsValid : __is_vectorizable<_Tp> {};
template
static constexpr bool _S_is_valid_v = _IsValid<_Tp>::value;
_GLIBCXX_SIMD_INTRINSIC static constexpr bool _S_masked(bool __x)
{ return __x; }
using _CommonImpl = _CommonImplScalar;
using _SimdImpl = _SimdImplScalar;
using _MaskImpl = _MaskImplScalar;
template >
struct __traits : _InvalidTraits {};
template
struct __traits<_Tp, true>
{
using _IsValid = true_type;
using _SimdImpl = _SimdImplScalar;
using _MaskImpl = _MaskImplScalar;
using _SimdMember = _Tp;
using _MaskMember = bool;
static constexpr size_t _S_simd_align = alignof(_SimdMember);
static constexpr size_t _S_mask_align = alignof(_MaskMember);
// nothing the user can spell converts to/from simd/simd_mask
struct _SimdCastType { _SimdCastType() = delete; };
struct _MaskCastType { _MaskCastType() = delete; };
struct _SimdBase {};
struct _MaskBase {};
};
};
// }}}
// _CommonImplScalar {{{
struct _CommonImplScalar
{
// _S_store {{{
template
_GLIBCXX_SIMD_INTRINSIC static void _S_store(_Tp __x, void* __addr)
{ __builtin_memcpy(__addr, &__x, sizeof(_Tp)); }
// }}}
// _S_store_bool_array(_BitMask) {{{
template
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_store_bool_array(_BitMask<_Np, _Sanitized> __x, bool* __mem)
{
__make_dependent_t::_S_store_bool_array(
__x, __mem);
}
// }}}
};
// }}}
// _SimdImplScalar {{{
struct _SimdImplScalar
{
// member types {{{2
using abi_type = simd_abi::scalar;
template
using _TypeTag = _Tp*;
// _S_broadcast {{{2
template
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp _S_broadcast(_Tp __x) noexcept
{ return __x; }
// _S_generator {{{2
template
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp _S_generator(_Fp&& __gen,
_TypeTag<_Tp>)
{ return __gen(_SizeConstant<0>()); }
// _S_load {{{2
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_load(const _Up* __mem,
_TypeTag<_Tp>) noexcept
{ return static_cast<_Tp>(__mem[0]); }
// _S_masked_load {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static _Tp _S_masked_load(_Tp __merge, bool __k,
const _Up* __mem) noexcept
{
if (__k)
__merge = static_cast<_Tp>(__mem[0]);
return __merge;
}
// _S_store {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static void _S_store(_Tp __v, _Up* __mem, _TypeTag<_Tp>) noexcept
{ __mem[0] = static_cast<_Up>(__v); }
// _S_masked_store {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static void _S_masked_store(const _Tp __v, _Up* __mem,
const bool __k) noexcept
{ if (__k) __mem[0] = __v; }
// _S_negate {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_negate(_Tp __x) noexcept
{ return !__x; }
// _S_reduce {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp
_S_reduce(const simd<_Tp, simd_abi::scalar>& __x, const _BinaryOperation&)
{ return __x._M_data; }
// _S_min, _S_max {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_min(const _Tp __a, const _Tp __b)
{ return std::min(__a, __b); }
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_max(const _Tp __a, const _Tp __b)
{ return std::max(__a, __b); }
// _S_complement {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_complement(_Tp __x) noexcept
{ return static_cast<_Tp>(~__x); }
// _S_unary_minus {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_unary_minus(_Tp __x) noexcept
{ return static_cast<_Tp>(-__x); }
// arithmetic operators {{{2
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_plus(_Tp __x, _Tp __y)
{
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
+ __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_minus(_Tp __x, _Tp __y)
{
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
- __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_multiplies(_Tp __x, _Tp __y)
{
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
* __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_divides(_Tp __x, _Tp __y)
{
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
/ __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_modulus(_Tp __x, _Tp __y)
{
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
% __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_bit_and(_Tp __x, _Tp __y)
{
if constexpr (is_floating_point_v<_Tp>)
{
using _Ip = __int_for_sizeof_t<_Tp>;
return __bit_cast<_Tp>(__bit_cast<_Ip>(__x) & __bit_cast<_Ip>(__y));
}
else
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
& __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_bit_or(_Tp __x, _Tp __y)
{
if constexpr (is_floating_point_v<_Tp>)
{
using _Ip = __int_for_sizeof_t<_Tp>;
return __bit_cast<_Tp>(__bit_cast<_Ip>(__x) | __bit_cast<_Ip>(__y));
}
else
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
| __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_bit_xor(_Tp __x, _Tp __y)
{
if constexpr (is_floating_point_v<_Tp>)
{
using _Ip = __int_for_sizeof_t<_Tp>;
return __bit_cast<_Tp>(__bit_cast<_Ip>(__x) ^ __bit_cast<_Ip>(__y));
}
else
return static_cast<_Tp>(__promote_preserving_unsigned(__x)
^ __promote_preserving_unsigned(__y));
}
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_bit_shift_left(_Tp __x, int __y)
{ return static_cast<_Tp>(__promote_preserving_unsigned(__x) << __y); }
template
_GLIBCXX_SIMD_INTRINSIC
static constexpr _Tp _S_bit_shift_right(_Tp __x, int __y)
{ return static_cast<_Tp>(__promote_preserving_unsigned(__x) >> __y); }
// math {{{2
// frexp, modf and copysign implemented in simd_math.h
template
using _ST = _SimdTuple<_Tp, simd_abi::scalar>;
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_acos(_Tp __x)
{ return std::acos(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_asin(_Tp __x)
{ return std::asin(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_atan(_Tp __x)
{ return std::atan(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_cos(_Tp __x)
{ return std::cos(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_sin(_Tp __x)
{ return std::sin(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_tan(_Tp __x)
{ return std::tan(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_acosh(_Tp __x)
{ return std::acosh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_asinh(_Tp __x)
{ return std::asinh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_atanh(_Tp __x)
{ return std::atanh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_cosh(_Tp __x)
{ return std::cosh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_sinh(_Tp __x)
{ return std::sinh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_tanh(_Tp __x)
{ return std::tanh(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_atan2(_Tp __x, _Tp __y)
{ return std::atan2(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_exp(_Tp __x)
{ return std::exp(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_exp2(_Tp __x)
{ return std::exp2(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_expm1(_Tp __x)
{ return std::expm1(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_log(_Tp __x)
{ return std::log(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_log10(_Tp __x)
{ return std::log10(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_log1p(_Tp __x)
{ return std::log1p(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_log2(_Tp __x)
{ return std::log2(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_logb(_Tp __x)
{ return std::logb(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _ST _S_ilogb(_Tp __x)
{ return {std::ilogb(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_pow(_Tp __x, _Tp __y)
{ return std::pow(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_abs(_Tp __x)
{ return std::abs(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fabs(_Tp __x)
{ return std::fabs(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_sqrt(_Tp __x)
{ return std::sqrt(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_cbrt(_Tp __x)
{ return std::cbrt(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_erf(_Tp __x)
{ return std::erf(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_erfc(_Tp __x)
{ return std::erfc(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_lgamma(_Tp __x)
{ return std::lgamma(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_tgamma(_Tp __x)
{ return std::tgamma(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_trunc(_Tp __x)
{ return std::trunc(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_floor(_Tp __x)
{ return std::floor(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_ceil(_Tp __x)
{ return std::ceil(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_nearbyint(_Tp __x)
{ return std::nearbyint(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_rint(_Tp __x)
{ return std::rint(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _ST _S_lrint(_Tp __x)
{ return {std::lrint(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC static _ST _S_llrint(_Tp __x)
{ return {std::llrint(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_round(_Tp __x)
{ return std::round(__x); }
template
_GLIBCXX_SIMD_INTRINSIC static _ST _S_lround(_Tp __x)
{ return {std::lround(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC static _ST _S_llround(_Tp __x)
{ return {std::llround(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_ldexp(_Tp __x, _ST __y)
{ return std::ldexp(__x, __y.first); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_scalbn(_Tp __x, _ST __y)
{ return std::scalbn(__x, __y.first); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_scalbln(_Tp __x, _ST __y)
{ return std::scalbln(__x, __y.first); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fmod(_Tp __x, _Tp __y)
{ return std::fmod(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_remainder(_Tp __x, _Tp __y)
{ return std::remainder(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_nextafter(_Tp __x, _Tp __y)
{ return std::nextafter(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fdim(_Tp __x, _Tp __y)
{ return std::fdim(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fmax(_Tp __x, _Tp __y)
{ return std::fmax(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fmin(_Tp __x, _Tp __y)
{ return std::fmin(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_fma(_Tp __x, _Tp __y, _Tp __z)
{ return std::fma(__x, __y, __z); }
template
_GLIBCXX_SIMD_INTRINSIC static _Tp _S_remquo(_Tp __x, _Tp __y, _ST* __z)
{ return std::remquo(__x, __y, &__z->first); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static _ST _S_fpclassify(_Tp __x)
{ return {std::fpclassify(__x)}; }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isfinite(_Tp __x)
{ return std::isfinite(__x); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isinf(_Tp __x)
{ return std::isinf(__x); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isnan(_Tp __x)
{ return std::isnan(__x); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isnormal(_Tp __x)
{ return std::isnormal(__x); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_signbit(_Tp __x)
{ return std::signbit(__x); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isgreater(_Tp __x, _Tp __y)
{ return std::isgreater(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isgreaterequal(_Tp __x,
_Tp __y)
{ return std::isgreaterequal(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isless(_Tp __x, _Tp __y)
{ return std::isless(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_islessequal(_Tp __x, _Tp __y)
{ return std::islessequal(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_islessgreater(_Tp __x,
_Tp __y)
{ return std::islessgreater(__x, __y); }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_isunordered(_Tp __x,
_Tp __y)
{ return std::isunordered(__x, __y); }
// _S_increment & _S_decrement{{{2
template
_GLIBCXX_SIMD_INTRINSIC
constexpr static void _S_increment(_Tp& __x)
{ ++__x; }
template
_GLIBCXX_SIMD_INTRINSIC
constexpr static void _S_decrement(_Tp& __x)
{ --__x; }
// compares {{{2
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_equal_to(_Tp __x, _Tp __y)
{ return __x == __y; }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_not_equal_to(_Tp __x,
_Tp __y)
{ return __x != __y; }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_less(_Tp __x, _Tp __y)
{ return __x < __y; }
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool _S_less_equal(_Tp __x,
_Tp __y)
{ return __x <= __y; }
// smart_reference access {{{2
template
_GLIBCXX_SIMD_INTRINSIC
constexpr static void _S_set(_Tp& __v, [[maybe_unused]] int __i,
_Up&& __x) noexcept
{
_GLIBCXX_DEBUG_ASSERT(__i == 0);
__v = static_cast<_Up&&>(__x);
}
// _S_masked_assign {{{2
template
_GLIBCXX_SIMD_INTRINSIC constexpr static void
_S_masked_assign(bool __k, _Tp& __lhs, _Tp __rhs)
{ if (__k) __lhs = __rhs; }
// _S_masked_cassign {{{2
template
_GLIBCXX_SIMD_INTRINSIC constexpr static void
_S_masked_cassign(const bool __k, _Tp& __lhs, const _Tp __rhs, _Op __op)
{ if (__k) __lhs = __op(_SimdImplScalar{}, __lhs, __rhs); }
// _S_masked_unary {{{2
template class _Op, typename _Tp>
_GLIBCXX_SIMD_INTRINSIC constexpr static _Tp _S_masked_unary(const bool __k,
const _Tp __v)
{ return static_cast<_Tp>(__k ? _Op<_Tp>{}(__v) : __v); }
// }}}2
};
// }}}
// _MaskImplScalar {{{
struct _MaskImplScalar
{
// member types {{{
template
using _TypeTag = _Tp*;
// }}}
// _S_broadcast {{{
template
_GLIBCXX_SIMD_INTRINSIC static constexpr bool _S_broadcast(bool __x)
{ return __x; }
// }}}
// _S_load {{{
template
_GLIBCXX_SIMD_INTRINSIC static constexpr bool _S_load(const bool* __mem)
{ return __mem[0]; }
// }}}
// _S_to_bits {{{
_GLIBCXX_SIMD_INTRINSIC static constexpr _SanitizedBitMask<1>
_S_to_bits(bool __x)
{ return __x; }
// }}}
// _S_convert {{{
template
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_convert(_BitMask<1, _Sanitized> __x)
{ return __x[0]; }
template
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_convert(simd_mask<_Up, _UAbi> __x)
{ return __x[0]; }
// }}}
// _S_from_bitmask {{{2
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_from_bitmask(_SanitizedBitMask<1> __bits, _TypeTag<_Tp>) noexcept
{ return __bits[0]; }
// _S_masked_load {{{2
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_masked_load(bool __merge, bool __mask, const bool* __mem) noexcept
{
if (__mask)
__merge = __mem[0];
return __merge;
}
// _S_store {{{2
_GLIBCXX_SIMD_INTRINSIC static void _S_store(bool __v, bool* __mem) noexcept
{ __mem[0] = __v; }
// _S_masked_store {{{2
_GLIBCXX_SIMD_INTRINSIC static void
_S_masked_store(const bool __v, bool* __mem, const bool __k) noexcept
{
if (__k)
__mem[0] = __v;
}
// logical and bitwise operators {{{2
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_logical_and(bool __x, bool __y)
{ return __x && __y; }
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_logical_or(bool __x, bool __y)
{ return __x || __y; }
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_bit_not(bool __x)
{ return !__x; }
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_bit_and(bool __x, bool __y)
{ return __x && __y; }
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_bit_or(bool __x, bool __y)
{ return __x || __y; }
_GLIBCXX_SIMD_INTRINSIC
static constexpr bool _S_bit_xor(bool __x, bool __y)
{ return __x != __y; }
// smart_reference access {{{2
_GLIBCXX_SIMD_INTRINSIC
constexpr static void _S_set(bool& __k, [[maybe_unused]] int __i,
bool __x) noexcept
{
_GLIBCXX_DEBUG_ASSERT(__i == 0);
__k = __x;
}
// _S_masked_assign {{{2
_GLIBCXX_SIMD_INTRINSIC static void _S_masked_assign(bool __k, bool& __lhs,
bool __rhs)
{
if (__k)
__lhs = __rhs;
}
// }}}2
// _S_all_of {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_all_of(simd_mask<_Tp, _Abi> __k)
{ return __k._M_data; }
// }}}
// _S_any_of {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_any_of(simd_mask<_Tp, _Abi> __k)
{ return __k._M_data; }
// }}}
// _S_none_of {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_none_of(simd_mask<_Tp, _Abi> __k)
{ return !__k._M_data; }
// }}}
// _S_some_of {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static bool
_S_some_of(simd_mask<_Tp, _Abi>)
{ return false; }
// }}}
// _S_popcount {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static int
_S_popcount(simd_mask<_Tp, _Abi> __k)
{ return __k._M_data; }
// }}}
// _S_find_first_set {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static int
_S_find_first_set(simd_mask<_Tp, _Abi>)
{ return 0; }
// }}}
// _S_find_last_set {{{
template
_GLIBCXX_SIMD_INTRINSIC constexpr static int
_S_find_last_set(simd_mask<_Tp, _Abi>)
{ return 0; }
// }}}
};
// }}}
_GLIBCXX_SIMD_END_NAMESPACE
#endif // __cplusplus >= 201703L
#endif // _GLIBCXX_EXPERIMENTAL_SIMD_SCALAR_H_
// vim: foldmethod=marker sw=2 noet ts=8 sts=2 tw=80
@
1.1.1.1
log
@initial import of GCC 12.3.0.
major changes in GCC 11 included:
- The default mode for C++ is now -std=gnu++17 instead of -std=gnu++14.
- When building GCC itself, the host compiler must now support C++11,
rather than C++98.
- Some short options of the gcov tool have been renamed: -i to -j and
-j to -H.
- ThreadSanitizer improvements.
- Introduce Hardware-assisted AddressSanitizer support.
- For targets that produce DWARF debugging information GCC now defaults
to DWARF version 5. This can produce up to 25% more compact debug
information compared to earlier versions.
- Many optimisations.
- The existing malloc attribute has been extended so that it can be
used to identify allocator/deallocator API pairs. A pair of new
-Wmismatched-dealloc and -Wmismatched-new-delete warnings are added.
- Other new warnings:
-Wsizeof-array-div, enabled by -Wall, warns about divisions of two
sizeof operators when the first one is applied to an array and the
divisor does not equal the size of the array element.
-Wstringop-overread, enabled by default, warns about calls to string
functions reading past the end of the arrays passed to them as
arguments.
-Wtsan, enabled by default, warns about unsupported features in
ThreadSanitizer (currently std::atomic_thread_fence).
- Enchanced warnings:
-Wfree-nonheap-object detects many more instances of calls to
deallocation functions with pointers not returned from a dynamic
memory allocation function.
-Wmaybe-uninitialized diagnoses passing pointers or references to
uninitialized memory to functions taking const-qualified arguments.
-Wuninitialized detects reads from uninitialized dynamically
allocated memory.
-Warray-parameter warns about functions with inconsistent array forms.
-Wvla-parameter warns about functions with inconsistent VLA forms.
- Several new features from the upcoming C2X revision of the ISO C
standard are supported with -std=c2x and -std=gnu2x.
- Several C++20 features have been implemented.
- The C++ front end has experimental support for some of the upcoming
C++23 draft.
- Several new C++ warnings.
- Enhanced Arm, AArch64, x86, and RISC-V CPU support.
- The implementation of how program state is tracked within
-fanalyzer has been completely rewritten with many enhancements.
see https://gcc.gnu.org/gcc-11/changes.html for a full list.
major changes in GCC 12 include:
- An ABI incompatibility between C and C++ when passing or returning
by value certain aggregates containing zero width bit-fields has
been discovered on various targets. x86-64, ARM and AArch64
will always ignore them (so there is a C ABI incompatibility
between GCC 11 and earlier with GCC 12 or later), PowerPC64 ELFv2
always take them into account (so there is a C++ ABI
incompatibility, GCC 4.4 and earlier compatible with GCC 12 or
later, incompatible with GCC 4.5 through GCC 11). RISC-V has
changed the handling of these already starting with GCC 10. As
the ABI requires, MIPS takes them into account handling function
return values so there is a C++ ABI incompatibility with GCC 4.5
through 11.
- STABS: Support for emitting the STABS debugging format is
deprecated and will be removed in the next release. All ports now
default to emit DWARF (version 2 or later) debugging info or are
obsoleted.
- Vectorization is enabled at -O2 which is now equivalent to the
original -O2 -ftree-vectorize -fvect-cost-model=very-cheap.
- GCC now supports the ShadowCallStack sanitizer.
- Support for __builtin_shufflevector compatible with the clang
language extension was added.
- Support for attribute unavailable was added.
- Support for __builtin_dynamic_object_size compatible with the
clang language extension was added.
- New warnings:
-Wbidi-chars warns about potentially misleading UTF-8
bidirectional control characters.
-Warray-compare warns about comparisons between two operands of
array type.
- Some new features from the upcoming C2X revision of the ISO C
standard are supported with -std=c2x and -std=gnu2x.
- Several C++23 features have been implemented.
- Many C++ enhancements across warnings and -f options.
see https://gcc.gnu.org/gcc-12/changes.html for a full list.
@
text
@@
1.1.1.1.2.1
log
@Sync with HEAD.
@
text
@d77 1
a77 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_masked(bool __x)
d113 1
a113 2
_GLIBCXX_SIMD_INTRINSIC static void
_S_store(_Tp __x, void* __addr)
d141 1
a141 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_broadcast(_Tp __x) noexcept
d146 2
a147 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_generator(_Fp&& __gen, _TypeTag<_Tp>)
d152 2
a153 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_load(const _Up* __mem, _TypeTag<_Tp>) noexcept
d158 3
a160 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_masked_load(_Tp __merge, bool __k, const _Up* __mem) noexcept
d169 2
a170 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_store(_Tp __v, _Up* __mem, _TypeTag<_Tp>) noexcept
d175 3
a177 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_masked_store(const _Tp __v, _Up* __mem, const bool __k) noexcept
d182 2
a183 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_negate(_Tp __x) noexcept
d188 2
a189 1
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
d195 2
a196 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_min(const _Tp __a, const _Tp __b)
d200 2
a201 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_max(const _Tp __a, const _Tp __b)
d206 2
a207 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_complement(_Tp __x) noexcept
d212 2
a213 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_unary_minus(_Tp __x) noexcept
d218 2
a219 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_plus(_Tp __x, _Tp __y)
d226 2
a227 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_minus(_Tp __x, _Tp __y)
d234 2
a235 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_multiplies(_Tp __x, _Tp __y)
d242 2
a243 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_divides(_Tp __x, _Tp __y)
d250 2
a251 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_modulus(_Tp __x, _Tp __y)
d258 2
a259 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_and(_Tp __x, _Tp __y)
d272 2
a273 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_or(_Tp __x, _Tp __y)
d286 2
a287 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_xor(_Tp __x, _Tp __y)
d300 2
a301 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_shift_left(_Tp __x, int __y)
d305 2
a306 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_shift_right(_Tp __x, int __y)
d315 1
a315 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_acos(_Tp __x)
d319 1
a319 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_asin(_Tp __x)
d323 1
a323 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atan(_Tp __x)
d327 1
a327 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cos(_Tp __x)
d331 1
a331 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sin(_Tp __x)
d335 1
a335 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tan(_Tp __x)
d339 1
a339 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_acosh(_Tp __x)
d343 1
a343 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_asinh(_Tp __x)
d347 1
a347 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atanh(_Tp __x)
d351 1
a351 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cosh(_Tp __x)
d355 1
a355 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sinh(_Tp __x)
d359 1
a359 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tanh(_Tp __x)
d363 1
a363 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atan2(_Tp __x, _Tp __y)
d367 1
a367 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_exp(_Tp __x)
d371 1
a371 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_exp2(_Tp __x)
d375 1
a375 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_expm1(_Tp __x)
d379 1
a379 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log(_Tp __x)
d383 1
a383 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log10(_Tp __x)
d387 1
a387 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log1p(_Tp __x)
d391 1
a391 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log2(_Tp __x)
d395 1
a395 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_logb(_Tp __x)
d399 1
a399 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_ilogb(_Tp __x)
d403 1
a403 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_pow(_Tp __x, _Tp __y)
d407 1
a407 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_abs(_Tp __x)
d411 1
a411 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fabs(_Tp __x)
d415 1
a415 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sqrt(_Tp __x)
d419 1
a419 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cbrt(_Tp __x)
d423 1
a423 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_erf(_Tp __x)
d427 1
a427 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_erfc(_Tp __x)
d431 1
a431 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_lgamma(_Tp __x)
d435 1
a435 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tgamma(_Tp __x)
d439 1
a439 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_trunc(_Tp __x)
d443 1
a443 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_floor(_Tp __x)
d447 1
a447 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_ceil(_Tp __x)
d451 1
a451 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_nearbyint(_Tp __x)
d455 1
a455 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_rint(_Tp __x)
d459 1
a459 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_lrint(_Tp __x)
d463 1
a463 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_llrint(_Tp __x)
d467 1
a467 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_round(_Tp __x)
d471 1
a471 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_lround(_Tp __x)
d475 1
a475 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_llround(_Tp __x)
d479 1
a479 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_ldexp(_Tp __x, _ST __y)
d483 1
a483 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_scalbn(_Tp __x, _ST __y)
d487 1
a487 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_scalbln(_Tp __x, _ST __y)
d491 1
a491 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmod(_Tp __x, _Tp __y)
d495 1
a495 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_remainder(_Tp __x, _Tp __y)
d499 1
a499 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_nextafter(_Tp __x, _Tp __y)
d503 1
a503 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fdim(_Tp __x, _Tp __y)
d507 1
a507 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmax(_Tp __x, _Tp __y)
d511 1
a511 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmin(_Tp __x, _Tp __y)
d515 1
a515 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fma(_Tp __x, _Tp __y, _Tp __z)
d519 1
a519 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_remquo(_Tp __x, _Tp __y, _ST* __z)
d523 1
a523 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _ST
_S_fpclassify(_Tp __x)
d527 1
a527 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isfinite(_Tp __x)
d531 1
a531 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isinf(_Tp __x)
d535 1
a535 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isnan(_Tp __x)
d539 1
a539 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isnormal(_Tp __x)
d543 1
a543 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_signbit(_Tp __x)
d547 1
a547 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isgreater(_Tp __x, _Tp __y)
d551 2
a552 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isgreaterequal(_Tp __x, _Tp __y)
d556 1
a556 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isless(_Tp __x, _Tp __y)
d560 1
a560 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_islessequal(_Tp __x, _Tp __y)
d564 2
a565 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_islessgreater(_Tp __x, _Tp __y)
d569 2
a570 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isunordered(_Tp __x, _Tp __y)
d575 2
a576 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_increment(_Tp& __x)
d580 2
a581 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_decrement(_Tp& __x)
d587 1
a587 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_equal_to(_Tp __x, _Tp __y)
d591 2
a592 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_not_equal_to(_Tp __x, _Tp __y)
d596 1
a596 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_less(_Tp __x, _Tp __y)
d600 2
a601 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_less_equal(_Tp __x, _Tp __y)
d606 3
a608 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_set(_Tp& __v, [[maybe_unused]] int __i, _Up&& __x) noexcept
d616 1
a616 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d622 1
a622 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d628 2
a629 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_masked_unary(const bool __k, const _Tp __v)
d646 1
a646 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_broadcast(bool __x)
d652 1
a652 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_load(const bool* __mem)
d676 1
a676 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d681 1
a681 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d690 1
a690 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_store(bool __v, bool* __mem) noexcept
d694 1
a694 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d702 2
a703 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_logical_and(bool __x, bool __y)
d706 2
a707 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_logical_or(bool __x, bool __y)
d710 2
a711 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_not(bool __x)
d714 2
a715 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_and(bool __x, bool __y)
d718 2
a719 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_or(bool __x, bool __y)
d722 2
a723 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_xor(bool __x, bool __y)
d727 3
a729 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_set(bool& __k, [[maybe_unused]] int __i, bool __x) noexcept
d736 2
a737 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_masked_assign(bool __k, bool& __lhs, bool __rhs)
d746 1
a746 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d753 1
a753 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d760 1
a760 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d767 1
a767 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d774 1
a774 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
d781 1
a781 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
d788 1
a788 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
@
1.1.1.2
log
@import GCC 12.4.0.
this includes at least 85 GCC PRs fixed, 2 C, 17 C++, 16 libstdc++-v3,
at least 13 target-specific (x86, arm64, riscv mostly), and at least
24 optimisation PRs.
@
text
@d77 1
a77 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_masked(bool __x)
d113 1
a113 2
_GLIBCXX_SIMD_INTRINSIC static void
_S_store(_Tp __x, void* __addr)
d141 1
a141 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_broadcast(_Tp __x) noexcept
d146 2
a147 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_generator(_Fp&& __gen, _TypeTag<_Tp>)
d152 2
a153 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_load(const _Up* __mem, _TypeTag<_Tp>) noexcept
d158 3
a160 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_masked_load(_Tp __merge, bool __k, const _Up* __mem) noexcept
d169 2
a170 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_store(_Tp __v, _Up* __mem, _TypeTag<_Tp>) noexcept
d175 3
a177 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_masked_store(const _Tp __v, _Up* __mem, const bool __k) noexcept
d182 2
a183 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_negate(_Tp __x) noexcept
d188 2
a189 1
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
d195 2
a196 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_min(const _Tp __a, const _Tp __b)
d200 2
a201 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_max(const _Tp __a, const _Tp __b)
d206 2
a207 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_complement(_Tp __x) noexcept
d212 2
a213 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_unary_minus(_Tp __x) noexcept
d218 2
a219 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_plus(_Tp __x, _Tp __y)
d226 2
a227 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_minus(_Tp __x, _Tp __y)
d234 2
a235 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_multiplies(_Tp __x, _Tp __y)
d242 2
a243 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_divides(_Tp __x, _Tp __y)
d250 2
a251 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_modulus(_Tp __x, _Tp __y)
d258 2
a259 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_and(_Tp __x, _Tp __y)
d272 2
a273 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_or(_Tp __x, _Tp __y)
d286 2
a287 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_xor(_Tp __x, _Tp __y)
d300 2
a301 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_shift_left(_Tp __x, int __y)
d305 2
a306 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_bit_shift_right(_Tp __x, int __y)
d315 1
a315 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_acos(_Tp __x)
d319 1
a319 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_asin(_Tp __x)
d323 1
a323 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atan(_Tp __x)
d327 1
a327 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cos(_Tp __x)
d331 1
a331 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sin(_Tp __x)
d335 1
a335 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tan(_Tp __x)
d339 1
a339 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_acosh(_Tp __x)
d343 1
a343 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_asinh(_Tp __x)
d347 1
a347 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atanh(_Tp __x)
d351 1
a351 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cosh(_Tp __x)
d355 1
a355 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sinh(_Tp __x)
d359 1
a359 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tanh(_Tp __x)
d363 1
a363 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_atan2(_Tp __x, _Tp __y)
d367 1
a367 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_exp(_Tp __x)
d371 1
a371 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_exp2(_Tp __x)
d375 1
a375 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_expm1(_Tp __x)
d379 1
a379 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log(_Tp __x)
d383 1
a383 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log10(_Tp __x)
d387 1
a387 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log1p(_Tp __x)
d391 1
a391 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_log2(_Tp __x)
d395 1
a395 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_logb(_Tp __x)
d399 1
a399 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_ilogb(_Tp __x)
d403 1
a403 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_pow(_Tp __x, _Tp __y)
d407 1
a407 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_abs(_Tp __x)
d411 1
a411 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fabs(_Tp __x)
d415 1
a415 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_sqrt(_Tp __x)
d419 1
a419 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_cbrt(_Tp __x)
d423 1
a423 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_erf(_Tp __x)
d427 1
a427 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_erfc(_Tp __x)
d431 1
a431 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_lgamma(_Tp __x)
d435 1
a435 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_tgamma(_Tp __x)
d439 1
a439 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_trunc(_Tp __x)
d443 1
a443 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_floor(_Tp __x)
d447 1
a447 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_ceil(_Tp __x)
d451 1
a451 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_nearbyint(_Tp __x)
d455 1
a455 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_rint(_Tp __x)
d459 1
a459 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_lrint(_Tp __x)
d463 1
a463 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_llrint(_Tp __x)
d467 1
a467 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_round(_Tp __x)
d471 1
a471 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_lround(_Tp __x)
d475 1
a475 2
_GLIBCXX_SIMD_INTRINSIC static _ST
_S_llround(_Tp __x)
d479 1
a479 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_ldexp(_Tp __x, _ST __y)
d483 1
a483 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_scalbn(_Tp __x, _ST __y)
d487 1
a487 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_scalbln(_Tp __x, _ST __y)
d491 1
a491 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmod(_Tp __x, _Tp __y)
d495 1
a495 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_remainder(_Tp __x, _Tp __y)
d499 1
a499 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_nextafter(_Tp __x, _Tp __y)
d503 1
a503 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fdim(_Tp __x, _Tp __y)
d507 1
a507 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmax(_Tp __x, _Tp __y)
d511 1
a511 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fmin(_Tp __x, _Tp __y)
d515 1
a515 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_fma(_Tp __x, _Tp __y, _Tp __z)
d519 1
a519 2
_GLIBCXX_SIMD_INTRINSIC static _Tp
_S_remquo(_Tp __x, _Tp __y, _ST* __z)
d523 1
a523 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _ST
_S_fpclassify(_Tp __x)
d527 1
a527 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isfinite(_Tp __x)
d531 1
a531 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isinf(_Tp __x)
d535 1
a535 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isnan(_Tp __x)
d539 1
a539 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isnormal(_Tp __x)
d543 1
a543 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_signbit(_Tp __x)
d547 1
a547 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isgreater(_Tp __x, _Tp __y)
d551 2
a552 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isgreaterequal(_Tp __x, _Tp __y)
d556 1
a556 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isless(_Tp __x, _Tp __y)
d560 1
a560 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_islessequal(_Tp __x, _Tp __y)
d564 2
a565 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_islessgreater(_Tp __x, _Tp __y)
d569 2
a570 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_isunordered(_Tp __x, _Tp __y)
d575 2
a576 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_increment(_Tp& __x)
d580 2
a581 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_decrement(_Tp& __x)
d587 1
a587 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_equal_to(_Tp __x, _Tp __y)
d591 2
a592 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_not_equal_to(_Tp __x, _Tp __y)
d596 1
a596 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_less(_Tp __x, _Tp __y)
d600 2
a601 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_less_equal(_Tp __x, _Tp __y)
d606 3
a608 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_set(_Tp& __v, [[maybe_unused]] int __i, _Up&& __x) noexcept
d616 1
a616 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d622 1
a622 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d628 2
a629 2
_GLIBCXX_SIMD_INTRINSIC static constexpr _Tp
_S_masked_unary(const bool __k, const _Tp __v)
d646 1
a646 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_broadcast(bool __x)
d652 1
a652 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_load(const bool* __mem)
d676 1
a676 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d681 1
a681 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d690 1
a690 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_store(bool __v, bool* __mem) noexcept
d694 1
a694 1
_GLIBCXX_SIMD_INTRINSIC static constexpr void
d702 2
a703 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_logical_and(bool __x, bool __y)
d706 2
a707 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_logical_or(bool __x, bool __y)
d710 2
a711 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_not(bool __x)
d714 2
a715 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_and(bool __x, bool __y)
d718 2
a719 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_or(bool __x, bool __y)
d722 2
a723 2
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
_S_bit_xor(bool __x, bool __y)
d727 3
a729 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_set(bool& __k, [[maybe_unused]] int __i, bool __x) noexcept
d736 2
a737 2
_GLIBCXX_SIMD_INTRINSIC static constexpr void
_S_masked_assign(bool __k, bool& __lhs, bool __rhs)
d746 1
a746 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d753 1
a753 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d760 1
a760 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d767 1
a767 1
_GLIBCXX_SIMD_INTRINSIC static constexpr bool
d774 1
a774 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
d781 1
a781 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
d788 1
a788 1
_GLIBCXX_SIMD_INTRINSIC static constexpr int
@
1.1.1.3
log
@initial import of GCC 14.3.0.
major changes in GCC 13:
- improved sanitizer
- zstd debug info compression
- LTO improvements
- SARIF based diagnostic support
- new warnings: -Wxor-used-as-pow, -Wenum-int-mismatch, -Wself-move,
-Wdangling-reference
- many new -Wanalyzer* specific warnings
- enhanced warnings: -Wpessimizing-move, -Wredundant-move
- new attributes to mark file descriptors, c++23 "assume"
- several C23 features added
- several C++23 features added
- many new features for Arm, x86, RISC-V
major changes in GCC 14:
- more strict C99 or newer support
- ia64* marked deprecated (but seemingly still in GCC 15.)
- several new hardening features
- support for "hardbool", which can have user supplied values of true/false
- explicit support for stack scrubbing upon function exit
- better auto-vectorisation support
- added clang-compatible __has_feature and __has_extension
- more C23, including -std=c23
- several C++26 features added
- better diagnostics in C++ templates
- new warnings: -Wnrvo, Welaborated-enum-base
- many new features for Arm, x86, RISC-V
- possible ABI breaking change for SPARC64 and small structures with arrays
of floats.
@
text
@d3 1
a3 1
// Copyright (C) 2020-2024 Free Software Foundation, Inc.
@