ScalES-PPM
Loading...
Searching...
No Matches
minmax.h File Reference

maximum and minimum macros for ScalES-PPM, adapted from genometools More...

Macros

#define MAX(a, b)
 
#define MIN(a, b)
 
#define MIN3(a, b, c)
 

Detailed Description

maximum and minimum macros for ScalES-PPM, adapted from genometools

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

Macro Definition Documentation

◆ MAX

#define MAX ( a,
b )
Value:
({ __typeof (a) _a = (a); \
__typeof (b) _b = (b); \
_a > _b ? _a : _b; })

◆ MIN

#define MIN ( a,
b )
Value:
({ __typeof (a) _a = (a); \
__typeof (b) _b = (b); \
_a <= _b ? _a : _b; })

◆ MIN3

#define MIN3 ( a,
b,
c )
Value:
({ __typeof(a) _a = (a); \
__typeof(b) _b = (b); \
__typeof(c) _c = (c); \
(((_a)<(_b))?((_a)<(_c)?(_a):(_c)):((_b)<(_c)?(_b):(_c)));})

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.