Переименование s0 -> s, x1 -> x, x2 -> y, x3 -> z, что должно упростить читаемость кода. Также обновление документации

This commit is contained in:
Andrey Pokidov 2026-03-29 22:06:01 +07:00
parent d83ab7160d
commit b8d383da33
38 changed files with 2104 additions and 2070 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

@ -48,9 +48,9 @@ BGC_FP32_Affine3* _create_bgc_affine3_random_list(int affine_amount)
get_random_value_fp32()
);
position.shift.x1 = get_random_value_fp32();
position.shift.x2 = get_random_value_fp32();
position.shift.x3 = get_random_value_fp32();
position.shift.x = get_random_value_fp32();
position.shift.y = get_random_value_fp32();
position.shift.z = get_random_value_fp32();
bgc_fp32_position3_get_affine(&affines[i], &position);
}
@ -72,9 +72,9 @@ BGC_FP32_Vector3* _create_bgc_vector3_random_list(int amount)
}
for (int i = 0; i < amount; i++) {
vectors[i].x1 = get_random_value_fp32();
vectors[i].x2 = get_random_value_fp32();
vectors[i].x3 = get_random_value_fp32();
vectors[i].x = get_random_value_fp32();
vectors[i].y = get_random_value_fp32();
vectors[i].z = get_random_value_fp32();
}
return vectors;
@ -146,7 +146,7 @@ float test_bgc_affine3_performance(int affine_amount, int vector_per_affine)
time = (float)(end.tv_sec - start.tv_sec) + (end.tv_nsec - start.tv_nsec) * 0.000000001f;