MCPcopy Create free account
hub / github.com/VcDevel/Vc / dataAlignment

Method dataAlignment

examples/matrix/main.cpp:75–75  ·  view source on GitHub ↗

The following function is a workaround for GCC 4.8, which fails to recognize V::MemoryAlignment as a constant expression inside the alignas operator.

Source from the content-addressed store, hash-verified

73 // The following function is a workaround for GCC 4.8, which fails to recognize
74 // V::MemoryAlignment as a constant expression inside the alignas operator.
75 static constexpr size_t dataAlignment() { return V::MemoryAlignment; }
76 // The outer array stores N rows and does not require further padding. It must be
77 // aligned correctly for Vc::Aligned loads and stores, though.
78 alignas(dataAlignment()) std::array<RowArray, N> data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected