From: falcovorbis <fal...@us...> - 2024-10-11 21:25:22
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via d7ad90091d76a5e9cfe1d73d83dd9f85e0c25484 (commit) from e883288299e92adb04a6ce21d2d9f7ec5e6f0d8d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d7ad90091d76a5e9cfe1d73d83dd9f85e0c25484 Author: Paul Cercueil <pa...@cr...> Date: Fri Oct 11 23:25:06 2024 +0200 matrix.h: Constify and rename some parameters (#812) Constify parameters where it makes sense, and rename an "out" parameter that's actually an input. Signed-off-by: Paul Cercueil <pa...@cr...> ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/include/dc/matrix.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/arch/dreamcast/include/dc/matrix.h b/kernel/arch/dreamcast/include/dc/matrix.h index 106b867a..01d58861 100644 --- a/kernel/arch/dreamcast/include/dc/matrix.h +++ b/kernel/arch/dreamcast/include/dc/matrix.h @@ -60,10 +60,10 @@ void mat_store(matrix_t *out); \note For best performance, 32-byte alignment of \p out is recommended. - \param out A pointer to where to load the matrix from (must be + \param src A pointer to where to load the matrix from (must be at least 8-byte aligned, should be 32-byte aligned). */ -void mat_load(matrix_t *out); +void mat_load(const matrix_t *src); /** \brief Clear the internal matrix to identity. @@ -83,7 +83,7 @@ void mat_identity(void); \param src A pointer to the matrix to multiply. */ -void mat_apply(matrix_t *src); +void mat_apply(const matrix_t *src); /** \brief Transform vectors by the internal matrix. @@ -95,7 +95,8 @@ void mat_apply(matrix_t *src); \param veccnt How many vectors are in the list. \param stride Number of bytes between vectors. */ -void mat_transform(vector_t *invecs, vector_t *outvecs, int veccnt, int stride); +void mat_transform(const vector_t *invecs, vector_t *outvecs, + int veccnt, int stride); /** \brief Transform vectors by the internal matrix into the store queues. hooks/post-receive -- A pseudo Operating System for the Dreamcast. |