Logo Search packages:      
Sourcecode: tagtool version File versions  Download package

math_util.c

#include "math_util.h"


int compare(int a, int b)
{
      if (a == b) return 0;
      else return (a < b ? -1 : 1);
}

int min(int a, int b)
{
      return (a < b ? a : b);
}

int max(int a, int b)
{
      return (a > b ? a : b);
}


Generated by  Doxygen 1.6.0   Back to index