Отказ от restrict функций для упрощения библиотеки. Компиляторы достаточно хорошо оптимизируют не-restrict inline-функции
This commit is contained in:
parent
f402f68516
commit
ed404690ed
17 changed files with 48 additions and 257 deletions
|
|
@ -597,20 +597,6 @@ inline void bgc_fp64_matrix2x2_multiply_by_vector2(BGC_FP64_Vector2* const produ
|
|||
product->y = y;
|
||||
}
|
||||
|
||||
// ======= Restrict Right Vector Product ======== //
|
||||
|
||||
inline void _bgc_fp32_restrict_matrix2x2_multiply_by_vector2(BGC_FP32_Vector2* restrict const product, const BGC_FP32_Matrix2x2* const matrix, const BGC_FP32_Vector2* const vector)
|
||||
{
|
||||
product->x = matrix->r1c1 * vector->x + matrix->r1c2 * vector->y;
|
||||
product->y = matrix->r2c1 * vector->x + matrix->r2c2 * vector->y;
|
||||
}
|
||||
|
||||
inline void _bgc_fp64_restrict_matrix2x2_multiply_by_vector2(BGC_FP64_Vector2* restrict const product, const BGC_FP64_Matrix2x2* const matrix, const BGC_FP64_Vector2* const vector)
|
||||
{
|
||||
product->x = matrix->r1c1 * vector->x + matrix->r1c2 * vector->y;
|
||||
product->y = matrix->r2c1 * vector->x + matrix->r2c2 * vector->y;
|
||||
}
|
||||
|
||||
// ========== Matrix Product 2y at 2y ========= //
|
||||
|
||||
inline void bgc_fp32_matrix2x2_multiply_by_matrix2x2(BGC_FP32_Matrix2x2* const product, const BGC_FP32_Matrix2x2* const matrix, const BGC_FP32_Matrix2x2* const matriy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue