libfgen
0.1.15
Library for optimization using a genetic algorithm or particle swarm optimization
|
00001 /* 00002 win32-compat.h -- header file with definitions for compatability with Windows. 00003 00004 fgen -- Library for optimization using a genetic algorithm or particle swarm optimization. 00005 Copyright 2012-13, Harm Hanemaaijer <fgenfb at yahoo.com> 00006 00007 This file is part of fgen. 00008 00009 fgen is free software: you can redistribute it and/or modify it 00010 under the terms of the GNU Lesser General Public License as published 00011 by the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 fgen is distributed in the hope that it will be useful, but WITHOUT 00015 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00016 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00017 License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with fgen. If not, see <http://www.gnu.org/licenses/>. 00021 00022 */ 00023 00024 #ifndef __GNUC__ 00025 00026 #define POSITIVE_INFINITY_DOUBLE DBL_MAX 00027 #define NEGATIVE_INFINITY_DOUBLE DBL_MIN 00028 00029 #define isnan(x) _isnan(x) 00030 00031 #else 00032 00033 #define POSITIVE_INFINITY_DOUBLE INFINITY 00034 #define NEGATIVE_INFINITY_DOUBLE (- INFINITY) 00035 00036 #endif 00037