OpenShot Library | OpenShotAudio
0.2.1
|
A wrapper around the platform's native SIMD register type. More...
#include <juce_SIMDRegister.h>
Classes | |
struct | ElementAccess |
Public Types | |
using | ElementType = Type |
The type that represents the individual constituents of the SIMD Register. | |
using | value_type = ElementType |
STL compatible value_type definition (same as ElementType). More... | |
using | MaskType = typename SIMDInternal::MaskTypeFor< ElementType >::type |
The corresponding primitive integer type, for example, this will be int32_t if type is a float. More... | |
using | PrimitiveType = typename SIMDInternal::PrimitiveType< ElementType >::type |
The native primitive type (used internally). More... | |
using | NativeOps = SIMDNativeOps< PrimitiveType > |
The native operations for this platform and type combination (used internally) | |
using | vSIMDType = typename NativeOps::vSIMDType |
The native type (used internally). More... | |
using | vMaskType = SIMDRegister< MaskType > |
The corresponding integer SIMDRegister type (used internally). More... | |
using | vMaskSIMDType = typename vMaskType::vSIMDType |
The internal native type for the corresponding mask type (used internally). More... | |
using | CmplxOps = CmplxSIMDOps< ElementType > |
Wrapper for operations which need to be handled differently for complex and scalar types (used internally). More... | |
Public Member Functions | |
SIMDRegister () noexcept=default | |
Default constructor. More... | |
SIMDRegister (vSIMDType a) noexcept | |
Constructs an object from the native SIMD type. More... | |
SIMDRegister (Type s) noexcept | |
Constructs an object from a scalar type by broadcasting it to all elements. More... | |
~SIMDRegister () noexcept=default | |
Destructor. More... | |
void JUCE_VECTOR_CALLTYPE | copyToRawArray (ElementType *a) const noexcept |
Copies the elements of the SIMDRegister to a scalar array in memory. More... | |
ElementType JUCE_VECTOR_CALLTYPE | get (size_t idx) const noexcept |
Returns the idx-th element of the receiver. More... | |
void JUCE_VECTOR_CALLTYPE | set (size_t idx, ElementType v) noexcept |
Sets the idx-th element of the receiver. More... | |
ElementType JUCE_VECTOR_CALLTYPE | operator[] (size_t idx) const noexcept |
Returns the idx-th element of the receiver. More... | |
ElementAccess JUCE_VECTOR_CALLTYPE | operator[] (size_t idx) noexcept |
Returns the idx-th element of the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator+= (SIMDRegister v) noexcept |
Adds another SIMDRegister to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator-= (SIMDRegister v) noexcept |
Subtracts another SIMDRegister to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator*= (SIMDRegister v) noexcept |
Multiplies another SIMDRegister to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator= (ElementType s) noexcept |
Broadcasts the scalar to all elements of the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator+= (ElementType s) noexcept |
Adds a scalar to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator-= (ElementType s) noexcept |
Subtracts a scalar to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator*= (ElementType s) noexcept |
Multiplies a scalar to the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator &= (vMaskType v) noexcept |
Bit-and the receiver with SIMDRegister v and store the result in the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator|= (vMaskType v) noexcept |
Bit-or the receiver with SIMDRegister v and store the result in the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator^= (vMaskType v) noexcept |
Bit-xor the receiver with SIMDRegister v and store the result in the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator &= (MaskType s) noexcept |
Bit-and each element of the receiver with the scalar s and store the result in the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator|= (MaskType s) noexcept |
Bit-or each element of the receiver with the scalar s and store the result in the receiver. More... | |
SIMDRegister &JUCE_VECTOR_CALLTYPE | operator^= (MaskType s) noexcept |
Bit-xor each element of the receiver with the scalar s and store the result in the receiver. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator+ (SIMDRegister v) const noexcept |
Returns the sum of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator- (SIMDRegister v) const noexcept |
Returns the difference of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator* (SIMDRegister v) const noexcept |
Returns the product of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator+ (ElementType s) const noexcept |
Returns a vector where each element is the sum of the corresponding element in the receiver and the scalar s. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator- (ElementType s) const noexcept |
Returns a vector where each element is the difference of the corresponding element in the receiver and the scalar s. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator* (ElementType s) const noexcept |
Returns a vector where each element is the product of the corresponding element in the receiver and the scalar s. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator & (vMaskType v) const noexcept |
Returns the bit-and of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator| (vMaskType v) const noexcept |
Returns the bit-or of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator^ (vMaskType v) const noexcept |
Returns the bit-xor of the receiver and v. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator~ () const noexcept |
Returns a vector where each element is the bit-inverted value of the corresponding element in the receiver. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator & (MaskType s) const noexcept |
Returns a vector where each element is the bit-and'd value of the corresponding element in the receiver and the scalar s. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator| (MaskType s) const noexcept |
Returns a vector where each element is the bit-or'd value of the corresponding element in the receiver and the scalar s. More... | |
SIMDRegister JUCE_VECTOR_CALLTYPE | operator^ (MaskType s) const noexcept |
Returns a vector where each element is the bit-xor'd value of the corresponding element in the receiver and the scalar s. More... | |
bool JUCE_VECTOR_CALLTYPE | operator== (SIMDRegister other) const noexcept |
Returns true if all element-wise comparisons return true. More... | |
bool JUCE_VECTOR_CALLTYPE | operator!= (SIMDRegister other) const noexcept |
Returns true if any element-wise comparisons return false. More... | |
bool JUCE_VECTOR_CALLTYPE | operator== (Type s) const noexcept |
Returns true if all elements are equal to the scalar. More... | |
bool JUCE_VECTOR_CALLTYPE | operator!= (Type s) const noexcept |
Returns true if any elements are not equal to the scalar. More... | |
ElementType | sum () const noexcept |
Returns a scalar which is the sum of all elements of the receiver. More... | |
Static Public Member Functions | |
static constexpr size_t | size () noexcept |
Returns the number of elements in this vector. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | expand (ElementType s) noexcept |
Creates a new SIMDRegister from the corresponding scalar primitive. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | fromNative (vSIMDType a) noexcept |
Creates a new SIMDRegister from the internal SIMD type (for example __mm128 for single-precision floating point on SSE architectures). More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | fromRawArray (const ElementType *a) noexcept |
Creates a new SIMDRegister from the first SIMDNumElements of a scalar array. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | equal (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is equal to the corresponding element of b, or zero otherwise. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | notEqual (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is not equal to the corresponding element of b, or zero otherwise. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | lessThan (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is less than to the corresponding element of b, or zero otherwise. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | lessThanOrEqual (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is than or equal to the corresponding element of b, or zero otherwise. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | greaterThan (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is greater than to the corresponding element of b, or zero otherwise. More... | |
static vMaskType JUCE_VECTOR_CALLTYPE | greaterThanOrEqual (SIMDRegister a, SIMDRegister b) noexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is greater than or equal to the corresponding element of b, or zero otherwise. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | min (SIMDRegister a, SIMDRegister b) noexcept |
Returns a new vector where each element is the minimum of the corresponding element of a and b. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | max (SIMDRegister a, SIMDRegister b) noexcept |
Returns a new vector where each element is the maximum of the corresponding element of a and b. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | multiplyAdd (SIMDRegister a, const SIMDRegister b, SIMDRegister c) noexcept |
Multiplies b and c and adds the result to a. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | truncate (SIMDRegister a) noexcept |
Truncates each element to its integer part. More... | |
static SIMDRegister JUCE_VECTOR_CALLTYPE | abs (SIMDRegister a) noexcept |
Returns the absolute value of each element. More... | |
static bool | isSIMDAligned (const ElementType *ptr) noexcept |
Checks if the given pointer is sufficiently aligned for using SIMD operations. More... | |
static ElementType * | getNextSIMDAlignedPtr (ElementType *ptr) noexcept |
Returns the next position in memory where isSIMDAligned returns true. More... | |
Public Attributes | |
vSIMDType | value |
Static Public Attributes | |
static constexpr size_t | SIMDRegisterSize = sizeof (vSIMDType) |
The size in bytes of this register. More... | |
static constexpr size_t | SIMDNumElements = SIMDRegisterSize / sizeof (ElementType) |
The number of elements that this vector can hold. More... | |
A wrapper around the platform's native SIMD register type.
This class is only available on SIMD machines. Use JUCE_USE_SIMD to query if SIMD is available for your system.
SIMDRegister<Type> is a templated class representing the native vectorized version of FloatingType. SIMDRegister supports all numerical primitive types and std:complex<float> and std::complex<double> supports and most operations of the corresponding primitive type. Additionally, SIMDRegister can be accessed like an array to extract the individual elements.
If you are using SIMDRegister as a pointer, then you must ensure that the memory is sufficiently aligned for SIMD vector operations. Failing to do so will result in crashes or very slow code. Use SIMDRegister::isSIMDAligned to query if a pointer is sufficiently aligned for SIMD vector operations.
Note that using SIMDRegister without enabling optimizations will result in code with very poor performance.
Definition at line 67 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::value_type = ElementType |
STL compatible value_type definition (same as ElementType).
Definition at line 74 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::MaskType = typename SIMDInternal::MaskTypeFor<ElementType>::type |
The corresponding primitive integer type, for example, this will be int32_t if type is a float.
Definition at line 78 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::PrimitiveType = typename SIMDInternal::PrimitiveType<ElementType>::type |
The native primitive type (used internally).
Definition at line 84 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::vSIMDType = typename NativeOps::vSIMDType |
The native type (used internally).
Definition at line 90 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::vMaskType = SIMDRegister<MaskType> |
The corresponding integer SIMDRegister type (used internally).
Definition at line 93 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::vMaskSIMDType = typename vMaskType::vSIMDType |
The internal native type for the corresponding mask type (used internally).
Definition at line 96 of file juce_SIMDRegister.h.
using juce::dsp::SIMDRegister< Type >::CmplxOps = CmplxSIMDOps<ElementType> |
Wrapper for operations which need to be handled differently for complex and scalar types (used internally).
Definition at line 100 of file juce_SIMDRegister.h.
|
inlinedefaultnoexcept |
Default constructor.
|
inlinenoexcept |
Constructs an object from the native SIMD type.
Definition at line 119 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Constructs an object from a scalar type by broadcasting it to all elements.
Definition at line 122 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::~SIMDRegister().
|
inlinedefaultnoexcept |
Destructor.
Referenced by juce::dsp::SIMDRegister< Type >::SIMDRegister().
|
inlinestaticnoexcept |
Returns the number of elements in this vector.
Definition at line 129 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::SIMDNumElements.
|
inlinestaticnoexcept |
Creates a new SIMDRegister from the corresponding scalar primitive.
The scalar is extended to all elements of the vector.
Definition at line 134 of file juce_SIMDRegister.h.
Referenced by juce::dsp::SIMDRegister< Type >::abs(), and juce::dsp::SIMDRegister< Type >::operator==().
|
inlinestaticnoexcept |
Creates a new SIMDRegister from the internal SIMD type (for example __mm128 for single-precision floating point on SSE architectures).
Definition at line 138 of file juce_SIMDRegister.h.
Referenced by juce::dsp::SIMDRegister< Type >::getNextSIMDAlignedPtr().
|
inlinestaticnoexcept |
Creates a new SIMDRegister from the first SIMDNumElements of a scalar array.
Definition at line 141 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::isSIMDAligned().
|
inlinenoexcept |
Copies the elements of the SIMDRegister to a scalar array in memory.
Definition at line 148 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::isSIMDAligned().
|
inlinenoexcept |
Returns the idx-th element of the receiver.
Note that this does not check if idx is larger than the native register size.
Definition at line 157 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Sets the idx-th element of the receiver.
Note that this does not check if idx is larger than the native register size.
Definition at line 165 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the idx-th element of the receiver.
Note that this does not check if idx is larger than the native register size.
Definition at line 174 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the idx-th element of the receiver.
Note that this does not check if idx is larger than the native register size.
Definition at line 181 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Adds another SIMDRegister to the receiver.
Definition at line 189 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Subtracts another SIMDRegister to the receiver.
Definition at line 192 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Multiplies another SIMDRegister to the receiver.
Definition at line 195 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Broadcasts the scalar to all elements of the receiver.
Definition at line 199 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Adds a scalar to the receiver.
Definition at line 202 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Subtracts a scalar to the receiver.
Definition at line 205 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Multiplies a scalar to the receiver.
Definition at line 208 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-and the receiver with SIMDRegister v and store the result in the receiver.
Definition at line 212 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-or the receiver with SIMDRegister v and store the result in the receiver.
Definition at line 215 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-xor the receiver with SIMDRegister v and store the result in the receiver.
Definition at line 218 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-and each element of the receiver with the scalar s and store the result in the receiver.
Definition at line 222 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-or each element of the receiver with the scalar s and store the result in the receiver.
Definition at line 225 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Bit-xor each element of the receiver with the scalar s and store the result in the receiver.
Definition at line 228 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the sum of the receiver and v.
Definition at line 232 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the difference of the receiver and v.
Definition at line 235 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the product of the receiver and v.
Definition at line 238 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the sum of the corresponding element in the receiver and the scalar s.
Definition at line 242 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the difference of the corresponding element in the receiver and the scalar s.
Definition at line 245 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the product of the corresponding element in the receiver and the scalar s.
Definition at line 248 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the bit-and of the receiver and v.
Definition at line 252 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the bit-or of the receiver and v.
Definition at line 255 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns the bit-xor of the receiver and v.
Definition at line 258 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the bit-inverted value of the corresponding element in the receiver.
Definition at line 261 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the bit-and'd value of the corresponding element in the receiver and the scalar s.
Definition at line 265 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the bit-or'd value of the corresponding element in the receiver and the scalar s.
Definition at line 268 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a vector where each element is the bit-xor'd value of the corresponding element in the receiver and the scalar s.
Definition at line 271 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns true if all element-wise comparisons return true.
Definition at line 275 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns true if any element-wise comparisons return false.
Definition at line 278 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns true if all elements are equal to the scalar.
Definition at line 281 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::expand().
|
inlinenoexcept |
Returns true if any elements are not equal to the scalar.
Definition at line 284 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is equal to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 290 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is not equal to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 295 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is less than to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 300 of file juce_SIMDRegister.h.
Referenced by juce::dsp::SIMDRegister< Type >::abs().
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is than or equal to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 305 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is greater than to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 310 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a SIMDRegister of the corresponding integral type where each element has each bit set if the corresponding element of a is greater than or equal to the corresponding element of b, or zero otherwise.
The result can then be used in bit operations defined above to avoid branches in vector SIMD code.
Definition at line 315 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a new vector where each element is the minimum of the corresponding element of a and b.
Definition at line 319 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns a new vector where each element is the maximum of the corresponding element of a and b.
Definition at line 322 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Multiplies b and c and adds the result to a.
Definition at line 326 of file juce_SIMDRegister.h.
|
inlinenoexcept |
Returns a scalar which is the sum of all elements of the receiver.
Definition at line 333 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Truncates each element to its integer part.
Effectively discards the fractional part of each element. A.k.a. round to zero.
Definition at line 338 of file juce_SIMDRegister.h.
|
inlinestaticnoexcept |
Returns the absolute value of each element.
Definition at line 342 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::expand(), and juce::dsp::SIMDRegister< Type >::lessThan().
|
inlinestaticnoexcept |
Checks if the given pointer is sufficiently aligned for using SIMD operations.
Definition at line 349 of file juce_SIMDRegister.h.
Referenced by juce::dsp::SIMDRegister< Type >::copyToRawArray(), and juce::dsp::SIMDRegister< Type >::fromRawArray().
|
inlinestaticnoexcept |
Returns the next position in memory where isSIMDAligned returns true.
If the current position in memory is already aligned then this method will simply return the pointer.
Definition at line 360 of file juce_SIMDRegister.h.
References juce::dsp::SIMDRegister< Type >::fromNative().
|
static |
The size in bytes of this register.
Definition at line 108 of file juce_SIMDRegister.h.
|
static |
The number of elements that this vector can hold.
Definition at line 111 of file juce_SIMDRegister.h.
Referenced by juce::dsp::SIMDRegister< Type >::size().