Отказ от restrict функций для упрощения библиотеки. Компиляторы достаточно хорошо оптимизируют не-restrict inline-функции
This commit is contained in:
parent
f402f68516
commit
ed404690ed
17 changed files with 48 additions and 257 deletions
|
|
@ -333,7 +333,7 @@ inline void bgc_fp32_turn3_combine3(BGC_FP32_Turn3* const combination, const BGC
|
|||
{
|
||||
BGC_FP32_Quaternion product;
|
||||
|
||||
_bgc_fp32_restrict_quaternion_multiply_by_quaternion(&product, &second->_versor, &first->_versor);
|
||||
bgc_fp32_quaternion_multiply_by_quaternion(&product, &second->_versor, &first->_versor);
|
||||
|
||||
bgc_fp32_quaternion_multiply_by_quaternion(&combination->_versor, &third->_versor, &product);
|
||||
|
||||
|
|
@ -344,7 +344,7 @@ inline void bgc_fp64_turn3_combine3(BGC_FP64_Turn3* const combination, const BGC
|
|||
{
|
||||
BGC_FP64_Quaternion product;
|
||||
|
||||
_bgc_fp64_restrict_quaternion_multiply_by_quaternion(&product, &second->_versor, &first->_versor);
|
||||
bgc_fp64_quaternion_multiply_by_quaternion(&product, &second->_versor, &first->_versor);
|
||||
|
||||
bgc_fp64_quaternion_multiply_by_quaternion(&combination->_versor, &third->_versor, &product);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue