jam 0.0.1
A compacting generational garbage collector for C++26
Loading...
Searching...
No Matches
jam.simd Module Reference

Exported Modules

module  jam
module  native.simd

Classes

struct  jam::tracer< native::simd< ptr< T >, N, A > >
 Trace actual pointer lanes, including null fields, in register order. More...
struct  jam::tracer< native::wide< V, K > >
 Trace each register's fields in the enclosing allocation. More...

Functions

template<class T, std::size_t N, native::isa<> A>
void jam::unsafe_assign (native::simd< ptr< T >, N, A > &target, native::simd< ptr< T >, N, A > const &source) noexcept
 Copy SIMD pointer bits without registering old-to-young slots.
template<class T, std::size_t N, native::isa<> A>
void jam::assign (native::simd< ptr< T >, N, A > &target, native::simd< ptr< T >, N, A > const &source) noexcept
 Bulk-copy a register and register its old-to-young slots.
template<class T, std::size_t N, native::isa<> A, std::size_t K>
void jam::unsafe_assign (native::wide< native::simd< ptr< T >, N, A >, K > &target, native::wide< native::simd< ptr< T >, N, A >, K > const &source) noexcept
 Copy a pointer register pack without registration; caller owns its barriers.
template<class T, std::size_t N, native::isa<> A, std::size_t K>
void jam::assign (native::wide< native::simd< ptr< T >, N, A >, K > &target, native::wide< native::simd< ptr< T >, N, A >, K > const &source) noexcept
 Copy a pointer register pack with one bulk barrier per register.
template<class T, class U, class Owner, std::size_t N, native::isa<> A>
native::simd< U, N, A > jam::gather (native::simd< ptr< T >, N, A > const &nodes, U Owner::*member, typename native::simd< ptr< T >, N, A >::mask_type active) noexcept
 Gather a member from selected lanes; inactive lanes return zero or null.
template<class T, class U, class Owner, std::size_t N, native::isa<> A>
native::simd< U, N, A > jam::gather (native::simd< ptr< T >, N, A > const &nodes, U Owner::*member) noexcept
 Gather with the mask nodes != nullptr; inactive lanes return zero or null.
template<class T, class U, class Owner, std::size_t N, native::isa<> A, std::size_t K>
native::wide< native::simd< U, N, A >, K > jam::gather (native::wide< native::simd< ptr< T >, N, A >, K > const &nodes, U Owner::*member, native::wide< typename native::simd< ptr< T >, N, A >::mask_type, K > const &active) noexcept
 Gather each register using the supplied masks, preserving lane and register order.
template<class T, class U, class Owner, std::size_t N, native::isa<> A, std::size_t K>
native::wide< native::simd< U, N, A >, K > jam::gather (native::wide< native::simd< ptr< T >, N, A >, K > const &nodes, U Owner::*member) noexcept
 Compute all nonnull register masks, then gather the requested member.

Files

file  src/jam/simd.ccm
 SIMD compressed pointers and heap-relative gathers.