• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/programs/qthread-1.4/include/qthread/qutil.h

00001 #ifndef QTHREAD_QUTIL_H
00002 #define QTHREAD_QUTIL_H
00003 
00004 #include <qthread/qthread.h>
00005 
00006 Q_STARTCXX /* */
00007 
00008 /* This computes the sum/product of all the doubles in an array. If checkfeb is
00009  * non-zero, then it will wait for each array entry to be marked FEB-full */
00010 double qutil_double_sum(qthread_t * me, const double *array, size_t length,
00011                         int checkfeb);
00012 double qutil_double_mult(qthread_t * me, const double *array, size_t length,
00013                          int checkfeb);
00014 double qutil_double_max(qthread_t * me, const double *array, size_t length,
00015                         int checkfeb);
00016 double qutil_double_min(qthread_t * me, const double *array, size_t length,
00017                         int checkfeb);
00018 /* This computes the sum/product of all the aligned_ts in an array */
00019 aligned_t qutil_uint_sum(qthread_t * me, const aligned_t * array,
00020                          size_t length, int checkfeb);
00021 aligned_t qutil_uint_mult(qthread_t * me, const aligned_t * array,
00022                           size_t length, int checkfeb);
00023 aligned_t qutil_uint_max(qthread_t * me, const aligned_t * array,
00024                          size_t length, int checkfeb);
00025 aligned_t qutil_uint_min(qthread_t * me, const aligned_t * array,
00026                          size_t length, int checkfeb);
00027 /* This computes the sum/product of all the saligned_ts in an array */
00028 saligned_t qutil_int_sum(qthread_t * me, const saligned_t * array,
00029                          size_t length, int checkfeb);
00030 saligned_t qutil_int_mult(qthread_t * me, const saligned_t * array,
00031                           size_t length, int checkfeb);
00032 saligned_t qutil_int_max(qthread_t * me, const saligned_t * array,
00033                          size_t length, int checkfeb);
00034 saligned_t qutil_int_min(qthread_t * me, const saligned_t * array,
00035                          size_t length, int checkfeb);
00036 
00037 void qutil_mergesort(qthread_t * me, double *array, size_t length);
00038 void qutil_qsort(qthread_t * me, double *array, size_t length);
00039 void qutil_aligned_qsort(qthread_t * me, aligned_t * array, size_t length);
00040 
00041 Q_ENDCXX /* */
00042 #endif

Generated on Fri Oct 22 2010 11:02:24 for SST by  doxygen 1.7.1