cOMS/models/mob/PrimaryStatsPoints.cpp

25 lines
699 B
C++

/**
* Jingga
*
* @copyright Jingga
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
#ifndef TOS_MODELS_MOB_PRIMARY_STATS_POINTS_C
#define TOS_MODELS_MOB_PRIMARY_STATS_POINTS_C
#include "../../stdlib/Simd.h"
#include "PrimaryStatsPoints.h"
void calculate_primary_values(const PrimaryStatsPoints* points, PrimaryStatsValues* values, int step = 8)
{
simd_mult((int16 *) points, 1.3f, (int32 *) values, sizeof(PrimaryStatsPoints), step);
}
void calculate_primary_relatives(const PrimaryStatsPoints* points, PrimaryStatsRelValues* values, int step = 8)
{
simd_mult((int16 *) points, 0.01f, (int32 *) values, sizeof(PrimaryStatsPoints), step);
}
#endif