Изменение функций нормализации, переименование make функий в set values, добавление внутренних restrict функций, гарантирующих оптимизальное выполнение открытых функций, независимо от компилятора

This commit is contained in:
Andrey Pokidov 2026-03-24 17:11:09 +07:00
parent e6ac9023ec
commit 6945c69ef2
20 changed files with 324 additions and 337 deletions

View file

@ -40,7 +40,7 @@ BGC_FP32_Affine3* _create_bgc_affine3_random_list(int affine_amount)
BGC_FP32_Position3 position;
for (int i = 0; i < affine_amount; i++) {
bgc_fp32_turn3_set_raw_values(
bgc_fp32_turn3_set_values(
&position.turn,
get_random_value_fp32(),
get_random_value_fp32(),

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

@ -29,7 +29,7 @@ structure_fp32_t* make_structures(const unsigned int amount)
const float multiplier = 2.0f / RAND_MAX;
for (unsigned int i = 0; i < amount; i++) {
bgc_fp32_turn3_set_raw_values(
bgc_fp32_turn3_set_values(
&list[i].versor1,
rand() * multiplier - 1.0f,
rand() * multiplier - 1.0f,
@ -37,7 +37,7 @@ structure_fp32_t* make_structures(const unsigned int amount)
rand() * multiplier - 1.0f
);
bgc_fp32_turn3_set_raw_values(
bgc_fp32_turn3_set_values(
&list[i].versor2,
rand() * multiplier - 1.0f,
rand() * multiplier - 1.0f,
@ -127,9 +127,9 @@ int main()
int main() {
BGC_FP32_Complex complex, exponent, result;