Тестирование производительности: версоры + матрица + поворот

This commit is contained in:
Andrey Pokidov 2024-11-27 02:51:07 +07:00
parent 5d4472150b
commit a30629df67
3 changed files with 78 additions and 4 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

@ -9,7 +9,46 @@
#include <time.h>
#endif // _WINDOWS_
BgFP32Versor * allocate_versors(const unsigned int amount)
BgFP32Vector3* allocate_vectors3(const unsigned int amount)
{
return calloc(amount, sizeof(BgFP32Vector3));
}
BgFP32Vector3* make_zero_vectors3(const unsigned int amount)
{
BgFP32Vector3* list = allocate_vectors3(amount);
if (list == 0) {
return 0;
}