Skip to content

Commit 35e6998

Browse files
committed
Revert "[libc++] Remove a few unused includes from <__bit/*> (llvm#137934)"
This reverts commit a6459de.
1 parent 1bbff0e commit 35e6998

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

libcxx/include/__bit/bit_floor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <__bit/bit_log2.h>
1313
#include <__concepts/arithmetic.h>
1414
#include <__config>
15+
#include <limits>
1516

1617
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1718
# pragma GCC system_header

libcxx/include/__bit/countl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef _LIBCPP___BIT_COUNTL_H
1010
#define _LIBCPP___BIT_COUNTL_H
1111

12+
#include <__bit/rotate.h>
1213
#include <__concepts/arithmetic.h>
1314
#include <__config>
1415
#include <__type_traits/is_unsigned_integer.h>

libcxx/include/__bit/countr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef _LIBCPP___BIT_COUNTR_H
1010
#define _LIBCPP___BIT_COUNTR_H
1111

12+
#include <__assert>
1213
#include <__concepts/arithmetic.h>
1314
#include <__config>
1415
#include <__type_traits/is_unsigned.h>

libcxx/include/__bit/popcount.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
#ifndef _LIBCPP___BIT_POPCOUNT_H
1010
#define _LIBCPP___BIT_POPCOUNT_H
1111

12+
#include <__bit/rotate.h>
1213
#include <__concepts/arithmetic.h>
1314
#include <__config>
1415
#include <__type_traits/is_unsigned.h>
16+
#include <limits>
1517

1618
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1719
# pragma GCC system_header

0 commit comments

Comments
 (0)