Большое переупорядочивание исходного кода
This commit is contained in:
parent
fffe2be43b
commit
43bf030295
26 changed files with 1225 additions and 1137 deletions
|
|
@ -27,10 +27,11 @@
|
||||||
<Option type="1" />
|
<Option type="1" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-O2" />
|
<Add option="-O3" />
|
||||||
<Add directory="../basic-geometry" />
|
<Add directory="../basic-geometry" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
|
<Add option="-O3" />
|
||||||
<Add option="-s" />
|
<Add option="-s" />
|
||||||
<Add library="basic-geometry" />
|
<Add library="basic-geometry" />
|
||||||
<Add library="m" />
|
<Add library="m" />
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
/*
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
@ -12,8 +11,6 @@
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BgcVersorFP32 versor1, versor2, result;
|
BgcVersorFP32 versor1, versor2, result;
|
||||||
//BgcMatrix3x3FP32 matrix;
|
|
||||||
//BgcVector3FP32 vector1, vector2;
|
|
||||||
} structure_fp32_t;
|
} structure_fp32_t;
|
||||||
|
|
||||||
structure_fp32_t* allocate_structures(const unsigned int amount)
|
structure_fp32_t* allocate_structures(const unsigned int amount)
|
||||||
|
|
@ -49,18 +46,6 @@ structure_fp32_t* make_structures(const unsigned int amount)
|
||||||
);
|
);
|
||||||
|
|
||||||
bgc_versor_reset_fp32(&list[i].result);
|
bgc_versor_reset_fp32(&list[i].result);
|
||||||
|
|
||||||
//bgc_matrix3x3_set_to_identity_fp32(&list[i].matrix);
|
|
||||||
/*
|
|
||||||
bgc_vector3_set_values_fp32(
|
|
||||||
rand() * multiplier - 1.0f,
|
|
||||||
rand() * multiplier - 1.0f,
|
|
||||||
rand() * multiplier - 1.0f,
|
|
||||||
&list[i].vector1
|
|
||||||
);
|
|
||||||
|
|
||||||
bgc_vector3_reset_fp32(&list[i].vector2);
|
|
||||||
*//*
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
|
@ -94,7 +79,7 @@ void list_work(const uint_fast32_t amount, structure_fp32_t* list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
const unsigned int amount = 1000000;
|
const unsigned int amount = 1000000;
|
||||||
|
|
@ -136,18 +121,3 @@ int main()
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <basic-geometry.h>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
BgcVector3FP32 my_vector;
|
|
||||||
|
|
||||||
bgc_vector3_set_values_fp32(-2, 7, 10, &my_vector);
|
|
||||||
|
|
||||||
printf("x1 = %f, x2 = %f, x3 = %f\n", my_vector.x1, my_vector.x2, my_vector.x3);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -106,13 +106,13 @@ static const float _TEST_FP32_DATA_SQUARE_NONUNIT[] = {
|
||||||