qt_double_min(3)

πŸ“¦ version 1.22^20251007gitcedb1fc, in fedora 43, fedora 44

πŸ’– 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 πŸ’œ


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