Skip to content

Commit

Permalink
Vutils
Browse files Browse the repository at this point in the history
  • Loading branch information
vic4key committed Nov 13, 2023
1 parent ab0f1d9 commit 1904652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/Vutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ intptr vuapi lcm(ulongptr count, ...); // BCNN
void vuapi hex_dump(const void* data, int size);
float vuapi fast_sqrtf(const float number); // Estimates the square root of a 32-bit floating-point number (from Quake III Arena)
void divide_items_into_pieces(const size_t num_items, const size_t num_pieces,
std::function<void(size_t idx, size_t f, size_t end, size_t num)> fn);
std::function<void(size_t idx, size_t beg, size_t end, size_t num)> fn);
size_t divide_items_into_num_items_per_piece(const size_t num_items, const size_t num_items_per_piece,
std::function<void(size_t idx, size_t f, size_t end, size_t num)> fn);
std::function<void(size_t idx, size_t beg, size_t end, size_t num)> fn);

#include "template/math.tpl"

Expand Down
4 changes: 2 additions & 2 deletions src/details/math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ float vuapi fast_sqrtf(const float number)
* (4, 5) => (1, 1, 1, 1, 0)
*/
void divide_items_into_pieces(const size_t num_items, const size_t num_pieces,
std::function<void(size_t idx, size_t f, size_t end, size_t num)> fn)
std::function<void(size_t idx, size_t beg, size_t end, size_t num)> fn)
{
if (fn == nullptr)
{
Expand Down Expand Up @@ -186,7 +186,7 @@ void divide_items_into_pieces(const size_t num_items, const size_t num_pieces,
* (4, 5) => (4)
*/
size_t divide_items_into_num_items_per_piece(const size_t num_items, const size_t num_items_per_piece,
std::function<void(size_t idx, size_t f, size_t end, size_t num)> fn)
std::function<void(size_t idx, size_t beg, size_t end, size_t num)> fn)
{
if (fn == nullptr)
{
Expand Down

0 comments on commit 1904652

Please sign in to comment.