aboutsummaryrefslogtreecommitdiff
path: root/src/legacy-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy-api.c')
-rw-r--r--src/legacy-api.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/legacy-api.c b/src/legacy-api.c
index 43fb798..8d5a6fd 100644
--- a/src/legacy-api.c
+++ b/src/legacy-api.c
@@ -4,21 +4,12 @@
/* Dependencies */
#include <fxdiv.h>
-/* Library header */
+/* Public library header */
#include <pthreadpool.h>
+/* Internal library headers */
+#include "threadpool-utils.h"
-static inline size_t divide_round_up(size_t dividend, size_t divisor) {
- if (dividend % divisor == 0) {
- return dividend / divisor;
- } else {
- return dividend / divisor + 1;
- }
-}
-
-static inline size_t min(size_t a, size_t b) {
- return a < b ? a : b;
-}
void pthreadpool_compute_1d(
pthreadpool_t threadpool,