Skip to content

Commit

Permalink
Upload headers (riscv64) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Sep 22, 2024
1 parent e8caeea commit ebfc322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions riscv64/include/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using __atomic_float<double>::operator=;
};

#if !(defined(__clang__) && !__STDC_HOSTED__) // clang in kernel context
template<>
struct atomic<long double> : __atomic_float<long double>
{
Expand All @@ -1664,6 +1665,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION

using __atomic_float<long double>::operator=;
};
#endif

#ifdef __STDCPP_FLOAT16_T__
template<>
Expand Down
2 changes: 2 additions & 0 deletions riscv64/include/bits/stl_algobase.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,10 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
__size_to_integer(float __n) { return (long long)__n; }
inline _GLIBCXX_CONSTEXPR long long
__size_to_integer(double __n) { return (long long)__n; }
#if !(defined(__clang__) && !__STDC_HOSTED__) // clang in kernel context
inline _GLIBCXX_CONSTEXPR long long
__size_to_integer(long double __n) { return (long long)__n; }
#endif
#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
__extension__ inline _GLIBCXX_CONSTEXPR long long
__size_to_integer(__float128 __n) { return (long long)__n; }
Expand Down

0 comments on commit ebfc322

Please sign in to comment.