Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::AllocatorTest< T > Class Template Reference

#include <gromacs/utility/tests/alignedallocator_impl.h>

Inherits Test.

Description

template<typename T>
class gmx::test::AllocatorTest< T >

Templated test fixture.

Public Member Functions

std::size_t mask (const T &allocator)
 Return a bitmask for testing the alignment. More...
 

Member Function Documentation

template<typename T >
std::size_t gmx::test::AllocatorTest< T >::mask ( const T &  allocator)
inline

Return a bitmask for testing the alignment.

e.g. for 128-byte alignment the mask is 128-1 - all of these bits should be zero in pointers that have the intended alignment.


The documentation for this class was generated from the following file: