File: math_util.h

package info (click to toggle)
tagtool 0.12.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,352 kB
  • ctags: 1,010
  • sloc: ansic: 9,013; sh: 3,571; makefile: 121
file content (24 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MATH_UTIL_H
#define MATH_UTIL_H


/* 
 * Compares two integers in 'strcmp' style:
 * if a<b, returns -1 
 * if a=b, returns 0
 * if a>b, returns 1
 */
int compare(int a, int b);

/* 
 * Minimum of two signed integers
 */
int min(int a, int b);

/* 
 * Maximum of two signed integers
 */
int max(int a, int b);


#endif