Gromacs  2016.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Friends
gmx::SimdLoadUFProxyInternal Class Reference

#include <gromacs/simd/simd.h>

Description

Proxy object to enable loadU() for SIMD and float types.

This object is returned by the load() function that takes a single pointer to a float. When the result is assigned to either SimdFloat or float, the appropriate conversion method will be executed, which in turn calls the correct low-level load function. In pratice this simply means you can use load() regardless for both SIMD and non-SIMD floating point data in templated functions.

This is an internal class you should never touch or create objects of. The only reason the constructor isn't private is that the load() function must be static to enable aggressive inlining.

Public Member Functions

 operator float () const
 Conversion method that will execute load of scalar float.
 
 operator SimdFloat () const
 Conversion method that will execute load of SimdFloat.
 

Friends

const SimdLoadUFProxyInternal
gmx_simdcall 
loadU (const float *m)
 LoadU function that returns proxy object for SimdFloat and float. More...
 

Friends And Related Function Documentation

const SimdLoadUFProxyInternal gmx_simdcall loadU ( const float *  m)
friend

LoadU function that returns proxy object for SimdFloat and float.

Parameters
mPointer to loadU memory
Returns
Proxy object that will call the actual loadU for either SimdFloat or float when you assign it and the conversion method is called.

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