Skip to content

LWG Poll 15: P1956R1 On the names of low-level bit manipulation functions #3780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1286,13 +1286,13 @@

// \ref{bit.pow.two}, integral powers of 2
template<class T>
constexpr bool ispow2(T x) noexcept;
constexpr bool has_single_bit(T x) noexcept;
template<class T>
constexpr T ceil2(T x);
constexpr T bit_ceil(T x);
template<class T>
constexpr T floor2(T x) noexcept;
constexpr T bit_floor(T x) noexcept;
template<class T>
constexpr T log2p1(T x) noexcept;
constexpr T bit_width(T x) noexcept;

// \ref{bit.rotate}, rotating
template<class T>
Expand Down Expand Up @@ -1366,10 +1366,10 @@

\rSec2[bit.pow.two]{Integral powers of 2}

\indexlibraryglobal{ispow2}%
\indexlibraryglobal{has_single_bit}%
\begin{itemdecl}
template<class T>
constexpr bool ispow2(T x) noexcept;
constexpr bool has_single_bit(T x) noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1384,10 +1384,10 @@

\end{itemdescr}

\indexlibraryglobal{ceil2}%
\indexlibraryglobal{bit_ceil}%
\begin{itemdecl}
template<class T>
constexpr T ceil2(T x);
constexpr T bit_ceil(T x);
\end{itemdecl}

\begin{itemdescr}
Expand Down Expand Up @@ -1417,10 +1417,10 @@
is not a core constant expression\iref{expr.const}.
\end{itemdescr}

\indexlibraryglobal{floor2}%
\indexlibraryglobal{bit_floor}%
\begin{itemdecl}
template<class T>
constexpr T floor2(T x) noexcept;
constexpr T bit_floor(T x) noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1432,14 +1432,14 @@
\returns
If \tcode{x == 0}, \tcode{0};
otherwise the maximal value \tcode{y}
such that \tcode{ispow2(y)} is \tcode{true} and \tcode{y <= x}.
such that \tcode{has_single_bit(y)} is \tcode{true} and \tcode{y <= x}.

\end{itemdescr}

\indexlibraryglobal{log2p1}%
\indexlibraryglobal{bit_width}%
\begin{itemdecl}
template<class T>
constexpr T log2p1(T x) noexcept;
constexpr T bit_width(T x) noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
#define @\defnlibxname{cpp_lib_hypot}@ 201603L // also in \libheader{cmath}
#define @\defnlibxname{cpp_lib_incomplete_container_elements}@ 201505L
// also in \libheader{forward_list}, \libheader{list}, \libheader{vector}
#define @\defnlibxname{cpp_lib_int_pow2}@ 201806L // also in \libheader{bit}
#define @\defnlibxname{cpp_lib_int_pow2}@ 202002L // also in \libheader{bit}
#define @\defnlibxname{cpp_lib_integer_sequence}@ 201304L // also in \libheader{utility}
#define @\defnlibxname{cpp_lib_integral_constant_callable}@ 201304L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_interpolate}@ 201902L // also in \libheader{cmath}, \libheader{numeric}
Expand Down