equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * test/demos/pmc/surface.cc |
2 * test/demos/pmc/surface.cc |
3 * Copyright (C) 2008 Markus Broeker |
3 * Copyright (C) 2008 Markus Broeker |
4 */ |
4 */ |
5 |
5 |
6 #include <surface.h> |
6 #include <surface.hpp> |
7 |
7 |
8 #define max(a,b) (((a) > (b)) ? (a) : (b)) |
8 #define max(a,b) (((a) > (b)) ? (a) : (b)) |
9 #define min(a,b) (((a) < (b)) ? (a) : (b)) |
9 #define min(a,b) (((a) < (b)) ? (a) : (b)) |
10 #define abs(a) (((a)<0) ? -(a) : (a)) |
10 #define abs(a) (((a)<0) ? -(a) : (a)) |
11 #define sign(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0) |
11 #define sign(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0) |