ScalES-PPM
Loading...
Searching...
No Matches
qsort_r.c File Reference

Functions for generic quick sort with extra parameter for improved re-entrancy. More...

#include <inttypes.h>
#include <stddef.h>
#include <stdlib.h>
#include "core/qsort_r.h"
#include "core/fptr_api.h"
#include "core/minmax.h"
#include "core/swapmacros.h"

Macros

#define vecswap(a, b, n)
 

Enumerations

enum  { par_low_limit = 128 * 4 }
 

Functions

void PPM_qsort_r (void *a, size_t n, size_t es, void *data, PPM_CompareWithData cmp)
 
void PPM_qsort_r_mt (void *a, size_t n, size_t es, void *data, PPM_CompareWithData cmp)
 

Detailed Description

Functions for generic quick sort with extra parameter for improved re-entrancy.

Version
1.0
Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Macro Definition Documentation

◆ vecswap

#define vecswap ( a,
b,
n )
Value:
if ((n) > 0) swapfunc(a, b, n, swaptype)

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.