Добавление квалификатора const для запрета изменения указаелей внутри функций

This commit is contained in:
Andrey Pokidov 2026-03-24 00:33:17 +07:00
parent 610756ffed
commit e6ac9023ec
24 changed files with 951 additions and 951 deletions

View file

Internal server error - Personal Git Server: Beyond coding. We Forge.

500

Internal server error

Forgejo version: 11.0.1+gitea-1.22.0

@ -1,31 +1,31 @@
#include "./affine2.h"
extern inline void bgc_fp32_affine2_reset(BGC_FP32_Affine2* affine);
extern inline void bgc_fp64_affine2_reset(BGC_FP64_Affine2* affine);
extern inline void bgc_fp32_affine2_reset(BGC_FP32_Affine2* const affine);
extern inline void bgc_fp64_affine2_reset(BGC_FP64_Affine2* const affine);
extern inline void bgc_fp32_affine2_make(BGC_FP32_Affine2* affine, const BGC_FP32_Matrix2x2* distortion, const BGC_FP32_Vector2* shift);
extern inline void bgc_fp64_affine2_make(BGC_FP64_Affine2* affine, const BGC_FP64_Matrix2x2* distortion, const BGC_FP64_Vector2* shift);
extern inline void bgc_fp32_affine2_make(BGC_FP32_Affine2* const affine, const BGC_FP32_Matrix2x2* const distortion, const BGC_FP32_Vector2* const shift);
extern inline void bgc_fp64_affine2_make(BGC_FP64_Affine2* const affine, const BGC_FP64_Matrix2x2* const distortion, const BGC_FP64_Vector2* const shift);
extern inline void bgc_fp32_affine2_copy(BGC_FP32_Affine2* destination, const BGC_FP32_Affine2* source);
extern inline void bgc_fp64_affine2_copy(BGC_FP64_Affine2* destination, const BGC_FP64_Affine2* source);
extern inline void bgc_fp32_affine2_copy(BGC_FP32_Affine2* const destination, const BGC_FP32_Affine2* const source);
extern inline void bgc_fp64_affine2_copy(BGC_FP64_Affine2* const destination, const BGC_FP64_Affine2* const source);
extern inline void bgc_fp32_affine2_swap(BGC_FP32_Affine2* first, BGC_FP32_Affine2* second);
extern inline void bgc_fp64_affine2_swap(BGC_FP64_Affine2* first, BGC_FP64_Affine2* second);
extern inline void bgc_fp32_affine2_swap(BGC_FP32_Affine2* const first, BGC_FP32_Affine2* const second);
extern inline void bgc_fp64_affine2_swap(BGC_FP64_Affine2* const first, BGC_FP64_Affine2* const second);
extern inline void bgc_fp32_affine2_convert_to_fp64(BGC_FP64_Affine2* destination, const BGC_FP32_Affine2* source);
extern inline void bgc_fp64_affine2_convert_to_fp32(BGC_FP32_Affine2* destination, const BGC_FP64_Affine2* source);
extern inline void bgc_fp32_affine2_convert_to_fp64(BGC_FP64_Affine2* const destination, const BGC_FP32_Affine2* const source);
extern inline void bgc_fp64_affine2_convert_to_fp32(BGC_FP32_Affine2* const destination, const BGC_FP64_Affine2* const source);
extern inline int bgc_fp32_affine2_invert(BGC_FP32_Affine2* affine);
extern inline int bgc_fp64_affine2_invert(BGC_FP64_Affine2* affine);
extern inline int bgc_fp32_affine2_invert(BGC_FP32_Affine2* const affine);
extern inline int bgc_fp64_affine2_invert(BGC_FP64_Affine2* const affine);
extern inline int bgc_fp32_affine2_get_inverse(BGC_FP32_Affine2* inverse, const BGC_FP32_Affine2* affine);
extern inline int bgc_fp64_affine2_get_inverse(BGC_FP64_Affine2* inverse, const BGC_FP64_Affine2* affine);
extern inline int bgc_fp32_affine2_get_inverse(BGC_FP32_Affine2* const inverse, const BGC_FP32_Affine2* const affine);
extern inline int bgc_fp64_affine2_get_inverse(BGC_FP64_Affine2* const inverse, const BGC_FP64_Affine2* const affine);
extern inline void bgc_fp32_affine2_combine(BGC_FP32_Affine2* combination, const BGC_FP32_Affine2* first, const BGC_FP32_Affine2* second);
extern inline void bgc_fp64_affine2_combine(BGC_FP64_Affine2* combination, const BGC_FP64_Affine2* first, const BGC_FP64_Affine2* second);
extern inline void bgc_fp32_affine2_combine(BGC_FP32_Affine2* const combination, const BGC_FP32_Affine2* const first, const BGC_FP32_Affine2* const second);
extern inline void bgc_fp64_affine2_combine(BGC_FP64_Affine2* const combination, const BGC_FP64_Affine2* const first, const BGC_FP64_Affine2* const second);
extern inline void bgc_fp32_affine2_transform_point(BGC_FP32_Vector2* transformed_point, const BGC_FP32_Affine2* affine, const BGC_FP32_Vector2* initial_point);