Skip to content

Commit

Permalink
Always provide simd_mask cast overloads
Browse files Browse the repository at this point in the history
ChangeLog:

	* README.md: Document simd_cast for simd_mask.
	* vir/simd.h: Import parallelism_v2::__proposed from libstdc++.
  • Loading branch information
mattkretz committed Apr 11, 2023
1 parent 688f91b commit d1effae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ implementation unconditionally. This is useful for testing.
## Additional Features
The TS curiously forgot to add `simd_cast` and `static_simd_cast` overloads for
`simd_mask`. With `vir::stdx::(static_)simd_cast`, casts will also work for
`simd_mask`. This does not require any additional includes.
### Bitwise operators for floating-point `simd`:
Expand Down
1 change: 1 addition & 0 deletions vir/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace vir::stdx
{
using namespace std::experimental::parallelism_v2;
using namespace std::experimental::parallelism_v2::__proposed;
}

#else
Expand Down

0 comments on commit d1effae

Please sign in to comment.