shz_xmtrx_store_aligned32_4x4
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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
matrix | shz_mat4x4_t * | 32-byte aligned matrix to store XMTRX into. |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”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.
Warnings
Section titled “Warnings”matrixmust 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.
Naming and requirements
Section titled “Naming and requirements”shz_mat4x4_tandshz_mat2x2_targuments must be 8-byte aligned. Unaligned data goes through thefloat[16]parameters of the_unalignedroutines.
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::store_aligned32 - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:221 - Module: XMTRX, section "Storing"