annotate xtract/xtract_macros.h @ 1:b8f2448f7207

Initial import
author Jamie Bullock <jamie@postlude.co.uk>
date Mon, 02 Oct 2006 14:18:15 +0000
parents
children 819937ea6359
rev   line source
jamie@1 1 /* libxtract feature extraction library
jamie@1 2 *
jamie@1 3 * Copyright (C) 2006 Jamie Bullock
jamie@1 4 *
jamie@1 5 * This program is free software; you can redistribute it and/or modify
jamie@1 6 * it under the terms of the GNU General Public License as published by
jamie@1 7 * the Free Software Foundation; either version 2 of the License, or
jamie@1 8 * (at your option) any later version.
jamie@1 9 *
jamie@1 10 * This program is distributed in the hope that it will be useful,
jamie@1 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jamie@1 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jamie@1 13 * GNU General Public License for more details.
jamie@1 14 *
jamie@1 15 * You should have received a copy of the GNU General Public License
jamie@1 16 * along with this program; if not, write to the Free Software
jamie@1 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
jamie@1 18 * USA.
jamie@1 19 */
jamie@1 20
jamie@1 21
jamie@1 22
jamie@1 23 /* xtract_delta.h: defines useful macros */
jamie@1 24
jamie@1 25 #ifndef XTRACT_MACROS
jamie@1 26 #define XTRACT_MACROS
jamie@1 27
jamie@1 28 #ifdef __cplusplus
jamie@1 29 extern "C" {
jamie@1 30 #endif
jamie@1 31
jamie@1 32 #define SQ(a) ((a) * (a))
jamie@1 33 #define MIN(a, b) ((a) < (b) ? (a) : (b))
jamie@1 34 #define MAX(a, b) ((a) > (b) ? (a) : (b))
jamie@1 35 #define NOT_IMPLEMENTED printf("Feature not implemented yet.\n")
jamie@1 36
jamie@1 37 #ifdef __cplusplus
jamie@1 38 }
jamie@1 39 #endif
jamie@1 40
jamie@1 41 #endif