Переход на парадигму Destination first в порядке параметров функий
This commit is contained in:
parent
f7e41645fe
commit
03627f4401
41 changed files with 1570 additions and 1978 deletions
|
|
@ -41,18 +41,18 @@ BGC_FP32_Affine3* _create_bgc_affine3_random_list(int affine_amount)
|
||||||
|
|
||||||
for (int i = 0; i < affine_amount; i++) {
|
for (int i = 0; i < affine_amount; i++) {
|
||||||
bgc_fp32_versor_make(
|
bgc_fp32_versor_make(
|
||||||
|
&position.turn,
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32(),
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32(),
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32(),
|
||||||
get_random_value_fp32(),
|
get_random_value_fp32()
|
||||||
&position.turn
|
|
||||||
);
|
);
|
||||||
|
|
||||||
position.shift.x1 = get_random_value_fp32();
|
position.shift.x1 = get_random_value_fp32();
|
||||||
position.shift.x2 = get_random_value_fp32();
|
position.shift.x2 = get_random_value_fp32();
|
||||||
position.shift.x3 = get_random_value_fp32();
|
position.shift.x3 = get_random_value_fp32();
|
||||||
|
|
||||||
bgc_fp32_position3_get_outward_affine(&position, &affines[i]);
|
bgc_fp32_position3_get_outward_affine(&affines[i], &position);
|
||||||
}
|
}
|
||||||
|
|
||||||
return affines;
|
return affines;
|
||||||
|
|
@ -131,7 +131,7 @@ float test_bgc_affine3_performance(int affine_amount, int vector_per_affine)
|
||||||
for (int i = 0; i < affine_amount; i++)
|
for (int i = 0; i < affine_amount; i++)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < vector_per_affine; j++) {
|
for (int j = 0; j < vector_per_affine; j++) {
|
||||||