2005-06-27 03:11:37 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2005-06-27 03:11:37 +04:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2005-06-27 03:11:37 +04:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2005-06-27 03:11:37 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2005-07-04 06:16:57 +04:00
|
|
|
#ifndef OPAL_QSORT_H
|
|
|
|
#define OPAL_QSORT_H
|
2005-06-27 03:11:37 +04:00
|
|
|
|
2009-05-07 00:11:28 +04:00
|
|
|
#if OPAL_HAVE_BROKEN_QSORT
|
2005-08-12 19:28:11 +04:00
|
|
|
|
2005-06-27 17:53:01 +04:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2005-06-27 17:47:13 +04:00
|
|
|
#include <sys/types.h> /* for size_t */
|
|
|
|
#endif
|
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
BEGIN_C_DECLS
|
2005-06-27 17:53:01 +04:00
|
|
|
|
2005-07-04 06:16:57 +04:00
|
|
|
void opal_qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void*));
|
2005-06-27 03:11:37 +04:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
END_C_DECLS
|
2005-06-27 17:53:01 +04:00
|
|
|
|
2005-08-12 19:28:11 +04:00
|
|
|
#else
|
|
|
|
#error "Don't include opal/qsort/qsort.h directly"
|
2009-05-07 00:11:28 +04:00
|
|
|
#endif /* OPAL_HAVE_BROKEN_QSORT */
|
2005-08-12 19:28:11 +04:00
|
|
|
|
2005-06-27 03:11:37 +04:00
|
|
|
#endif
|