qt_double_min(3)
π qt_double_min β bestie's guide to finding the littlest number π
ok so this is the libqthread manual page for qt_double_min(3), and honestly? she's giving parallel minimum-finding and I'm obsessed π«Ά
β¨ NAME β¨
qt_double_min, qt_uint_min, qt_int_min β find the minimum value within an array in parallel πΈ
π SYNOPSIS π
#include <qthread/qloop.h>
double
qt_double_min (double *array, size_t length, int checkfeb);
unsigned int
qt_uint_min (unsigned int *array, size_t length, int checkfeb);
int
qt_int_min (int *array, size_t length, int checkfeb);
π DESCRIPTION π
ok so picture this: you hand these functions an array of length numbers, and they hand you back the smallest one. that's it. that's the whole vibe. π
but here's the part that's actually iconic β this value gets computed in parallel, by splitting the iterations up evenly among the shepherds. so like, no single shepherd is out here doing all the work alone, they're sharing the load. main character energy but make it collaborative β¨
π¦ about checkfeb π¦
if checkfeb is non-zero, these functions will wait for the entries in the array to be full before comparing them. lowkey patient of them ngl π§
β οΈ but bestie listen β they DO NOT check whether the array entries are properly aligned. that's not their job, they did not sign up for that, and if you assumed they didβ¦ that's on you π
β RETURN VALUE β
the minimum value of the first length entries of array. that's the tea. π
π SEE ALSO π
qt_double_prod(3)qt_double_sum(3)qt_double_max(3)qt_uint_prod(3)qt_uint_sum(3)qt_uint_max(3)qt_int_prod(3)qt_int_sum(3)qt_int_max(3)qt_loop(3)qt_loop_balance(3)qt_loopaccum_balance(3)
and that's the page, bestie!! π this whole thing comes to you from libqthread, dated JUNE 2007 β yes she's a vintage queen and she still slays πβ¨π
π¦ where this page comes from
- fedora 43: qthreads-devel 1.22^20251007gitcedb1fc-1.fc43 Β· BSD-3-Clause AND MIT AND dtoa
- fedora 44: qthreads-devel 1.22^20251007gitcedb1fc-2.fc44 Β· BSD-3-Clause AND MIT AND dtoa
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms