From Jason Turner

[bit.syn]

Diff to HTML by rtfpessoa

tmp/tmp447wtuj4/{from.md → to.md} RENAMED
@@ -1,22 +1,27 @@
1
  ### Header `<bit>` synopsis <a id="bit.syn">[[bit.syn]]</a>
2
 
3
  ``` cpp
 
4
  namespace std {
5
  // [bit.cast], bit_cast
6
  template<class To, class From>
7
  constexpr To bit_cast(const From& from) noexcept;
8
 
 
 
 
 
9
  // [bit.pow.two], integral powers of 2
10
  template<class T>
11
  constexpr bool has_single_bit(T x) noexcept;
12
  template<class T>
13
  constexpr T bit_ceil(T x);
14
  template<class T>
15
  constexpr T bit_floor(T x) noexcept;
16
  template<class T>
17
- constexpr T bit_width(T x) noexcept;
18
 
19
  // [bit.rotate], rotating
20
  template<class T>
21
  [[nodiscard]] constexpr T rotl(T x, int s) noexcept;
22
  template<class T>
 
1
  ### Header `<bit>` synopsis <a id="bit.syn">[[bit.syn]]</a>
2
 
3
  ``` cpp
4
+ // all freestanding
5
  namespace std {
6
  // [bit.cast], bit_cast
7
  template<class To, class From>
8
  constexpr To bit_cast(const From& from) noexcept;
9
 
10
+ // [bit.byteswap], byteswap
11
+ template<class T>
12
+ constexpr T byteswap(T value) noexcept;
13
+
14
  // [bit.pow.two], integral powers of 2
15
  template<class T>
16
  constexpr bool has_single_bit(T x) noexcept;
17
  template<class T>
18
  constexpr T bit_ceil(T x);
19
  template<class T>
20
  constexpr T bit_floor(T x) noexcept;
21
  template<class T>
22
+ constexpr int bit_width(T x) noexcept;
23
 
24
  // [bit.rotate], rotating
25
  template<class T>
26
  [[nodiscard]] constexpr T rotl(T x, int s) noexcept;
27
  template<class T>