From 83ae455c3450418ef749c80340d4b1fcda2b5c74 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 11 Mar 2021 22:38:23 +0100 Subject: [PATCH] rename --- magyarsort.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magyarsort.h b/magyarsort.h index b8be2a9..46b3b37 100644 --- a/magyarsort.h +++ b/magyarsort.h @@ -51,7 +51,7 @@ namespace MagyarSort { } }; - static inline void calcOccurences(uint32_t arr[], size_t size, size_t *radicsOut) { + static inline void countOccurences(uint32_t arr[], size_t size, size_t *radicsOut) { for(size_t i = 0; i < size; ++i) { // Creates no object, struct is empty OccurenceMagic(arr, i, radicsOut); @@ -76,7 +76,7 @@ namespace MagyarSort { for(int i = 0; i < (DIGITS * DIGIT_RANGE); ++i) { radics[i] = 0; } // Calculate occurences of digits - calcOccurences(arr, size, radics); + countOccurences(arr, size, radics); // Calculate prefix sums // TODO: Maybe should use better ILP here?