Skip to content

shz_xmtrx_store_aligned32_4x4

Markdown
SHZ_INLINE void shz_xmtrx_store_aligned32_4x4(shz_mat4x4_t* matrix) SHZ_NOEXCEPT;

Stores the current values held within XMTRX into the given 32-byte aligned 4x4 matrix.

NameTypeDescription
matrixshz_mat4x4_t *32-byte aligned matrix to store XMTRX into.

Nothing (void).

Equivalent to shz_xmtrx_store_4x4(), except that the destination's two cache lines are preallocated rather than being fetched from memory first. This drastically reduces the pipeline stall penalties when matrix is not within the cache.

  • matrix must be 32-byte aligned. Both 32-byte cache lines it spans are allocated without being read on SH4, so any other data sharing those lines is lost.
  • shz_mat4x4_t and shz_mat2x2_t arguments must be 8-byte aligned. Unaligned data goes through the float[16] parameters of the _unaligned routines.

shz_xmtrx_store_4x4