LAL  7.5.0.1-b72065a
HeapSort.c File Reference

Prototypes

int XLALHeapSort (void *base, UINT4 nobj, UINT4 size, void *params, int(*compar)(void *, const void *, const void *))
 
int XLALHeapIndex (INT4 *indx, void *base, UINT4 nobj, UINT4 size, void *params, int(*compar)(void *, const void *, const void *))
 
int XLALHeapRank (INT4 *rank, void *base, UINT4 nobj, UINT4 size, void *params, int(*compar)(void *, const void *, const void *))
 

Go to the source code of this file.

Macros

#define COPY(x, i, y, j, s)   (memcpy((char*)(x)+(i)*(s),(char*)(y)+(j)*(s),(s)))
 
#define CMP(x, i, y, j, s, p, c)   ((c)((p),(char*)(x)+(i)*(s),(char*)(y)+(j)*(s)))
 

Macro Definition Documentation

◆ COPY

#define COPY (   x,
  i,
  y,
  j,
 
)    (memcpy((char*)(x)+(i)*(s),(char*)(y)+(j)*(s),(s)))

Definition at line 38 of file HeapSort.c.

◆ CMP

#define CMP (   x,
  i,
  y,
  j,
  s,
  p,
 
)    ((c)((p),(char*)(x)+(i)*(s),(char*)(y)+(j)*(s)))

Definition at line 41 of file HeapSort.c.