riccaticpp
Loading...
Searching...
No Matches
riccati::internal Namespace Reference

Classes

struct  is_complex_impl
 
struct  is_complex_impl< std::complex< T > >
 

Functions

template<bool Fwd, typename T >
RICCATI_ALWAYS_INLINE auto fft (T &&x)
 
template<unsigned int Alignment, typename T >
RICCATI_ALWAYS_INLINE bool is_aligned (T *ptr)
 
RICCATI_ALWAYS_INLINE unsigned char * eight_byte_aligned_malloc (size_t size)
 

Variables

constexpr size_t DEFAULT_INITIAL_NBYTES = 1 << 16
 

Function Documentation

◆ eight_byte_aligned_malloc()

RICCATI_ALWAYS_INLINE unsigned char * riccati::internal::eight_byte_aligned_malloc ( size_t size)

Allocates a block of memory of the specified size, returning a pointer to the block if successful.

Parameters
sizeNumber of bytes to allocate.

Definition at line 41 of file memory.hpp.

References is_aligned(), and RICCATI_COLD_PATH.

◆ fft()

template<bool Fwd, typename T >
RICCATI_ALWAYS_INLINE auto riccati::internal::fft ( T && x)

Definition at line 13 of file chebyshev.hpp.

References fft().

◆ is_aligned()

template<unsigned int Alignment, typename T >
RICCATI_ALWAYS_INLINE bool riccati::internal::is_aligned ( T * ptr)

Return true if the specified pointer is aligned on the number of bytes.

This doesn't really make sense other than for powers of 2.

Template Parameters
AlignmentNumber of bytes of alignment required.
TType of object to which pointer points.
Parameters
ptrPointer to test.
Returns
true if pointer is aligned.
Template Parameters
Typeof object to which pointer points.

Definition at line 30 of file memory.hpp.

Variable Documentation

◆ DEFAULT_INITIAL_NBYTES

size_t riccati::internal::DEFAULT_INITIAL_NBYTES = 1 << 16
constexpr

Definition at line 34 of file memory.hpp.