Skip to content

Commit

Permalink
Exposing compress in the public api (#1646)
Browse files Browse the repository at this point in the history
* moving compress files

* cleaning up compress
  • Loading branch information
DenisYaroshevskiy authored Aug 21, 2023
1 parent 19c4348 commit b59a564
Show file tree
Hide file tree
Showing 49 changed files with 844 additions and 384 deletions.
45 changes: 0 additions & 45 deletions include/eve/detail/compress/compress.hpp

This file was deleted.

20 changes: 0 additions & 20 deletions include/eve/detail/compress/simd/common/compress.hpp

This file was deleted.

35 changes: 0 additions & 35 deletions include/eve/detail/compress/simd/x86/compress.hpp

This file was deleted.

35 changes: 0 additions & 35 deletions include/eve/detail/function/compress_store_impl.hpp

This file was deleted.

69 changes: 0 additions & 69 deletions include/eve/detail/function/simd/common/compress_store_impl.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion include/eve/module/algo/algo/fill.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace eve::algo
{

//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var fill
//! @brief a version of `std::fill`
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/algo/algo/for_each.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace eve::algo
{
//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var for_each
//! @brief a basic for_each algorithm.
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/algo/algo/iota.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace eve::algo
{
//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var iota
//!
Expand Down
32 changes: 32 additions & 0 deletions include/eve/module/algo/algo/remove.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ namespace eve::algo
}
};

//================================================================================================
//! @addtogroup algos
//! @{
//! @var remove_if
//! @brief SIMD version of std::remove_if
//!
//! **Defined in Header**
//!
//! @code
//! #include <eve/module/algo.hpp>
//! @endcode
//!
//! TODO: docs
//!
//! @}
//================================================================================================
inline constexpr auto remove_if = function_with_traits<remove_if_>[no_traits];

template <typename TraitsSupport>
Expand All @@ -74,5 +90,21 @@ namespace eve::algo
}
};

//================================================================================================
//! @addtogroup algos
//! @{
//! @var remove
//! @brief SIMD version of std::remove
//!
//! **Defined in Header**
//!
//! @code
//! #include <eve/module/algo.hpp>
//! @endcode
//!
//! TODO: docs
//!
//! @}
//================================================================================================
inline constexpr auto remove = function_with_traits<remove_>[no_traits];
}
4 changes: 2 additions & 2 deletions include/eve/module/algo/algo/reverse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace eve::algo
{
//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var reverse
//!
Expand Down Expand Up @@ -75,7 +75,7 @@ namespace eve::algo
inline constexpr auto reverse = function_with_traits<reverse_>[no_unrolling][no_aligning];

//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var reverse_copy
//!
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/algo/algo/swap_ranges.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace eve::algo
{
//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var swap_ranges
//!
Expand Down
4 changes: 2 additions & 2 deletions include/eve/module/algo/algo/transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace eve::algo
}

//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var transform_inplace
//!
Expand Down Expand Up @@ -72,7 +72,7 @@ namespace eve::algo
inline constexpr auto transform_inplace = function_with_traits<transform_inplace_>[default_simple_algo_traits];

//================================================================================================
//! @addtogroup algorithms
//! @addtogroup algos
//! @{
//! @var transform_to
//!
Expand Down
7 changes: 7 additions & 0 deletions include/eve/module/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,16 @@
//! @ingroup core
//! Functions that are just shuffles with a different api.
//!
//! @defgroup core_comporess Compress functions
//! @ingroup core
//! Functions that in different way expose `compressing` selected elements
//! together to beginning. This is at the core of `remove_if`, `copy_if` etc.
//! Alternative search keywords: filter, remove, pack
//!
//! @}
//==================================================================================================

#include <eve/module/core/compress/core.hpp>
#include <eve/module/core/constant/core.hpp>
#include <eve/module/core/decorator/core.hpp>
#include <eve/module/core/detail/core.hpp>
Expand Down
Loading

0 comments on commit b59a564

Please sign in to comment.