qutil_double_mult


SYNOPSIS

       #include <qthread/qthread.h>
       #include <qthread/qutil.h>

       double
       qutil_double_mult(qthread_t *me,  double  *array,  size_t  length,  int
       checkfeb);

       unsigned int
       qutil_uint_mult(qthread_t  *me, unsigned int *array, size_t length, int
       checkfeb);

       int
       qutil_int_mult(qthread_t *me, int *array, size_t length, int checkfeb);


DESCRIPTION

       These  functions  take  as  input  an  array of length numbers and will
       return the product of those numbers. This product is computed in paral-
       lel  by  using  a lagging-loop structure, using futures to restrict the
       parallelism to the available limits.

       If checkfeb is non-zero, these functions will wait for the  entries  in
       the array to be full before multiplying them. They DO NOT check whether
       the array entries are properly aligned.


RETURN VALUE

       The product of the first length entries of array.


SEE ALSO

       qutil_double_sum(3),     qutil_double_max(3),      qutil_double_min(3),
       qutil_uint_sum(3),         qutil_uint_max(3),        qutil_uint_min(3),
       qutil_int_sum(3),  qutil_int_max(3),   qutil_int_min(3),
       qutil_mergesort(3), qutil_qsort(3)



libqthread                         MAY 2007               qutil_double_mult(3)