1 /* floatlogic.h: logic functions, based on floatnum. */ 2 /* 3 Copyright (C) 2007, 2008 Wolf Lammen. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License , or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; see the file COPYING. If not, write to: 17 18 The Free Software Foundation, Inc. 19 59 Temple Place, Suite 330 20 Boston, MA 02111-1307 USA. 21 22 23 You may contact the author by: 24 e-mail: ookami1 <at> gmx <dot> de 25 mail: Wolf Lammen 26 Oertzweg 45 27 22307 Hamburg 28 Germany 29 30 *************************************************************************/ 31 32 #ifndef FLOATLOGIC_H 33 # define FLOATLOGIC_H 34 35 #include "floatconvert.h" 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 char _canconvert(cfloatnum x); 42 char _floatnum2logic(t_longint* longint, cfloatnum x); 43 void _logic2floatnum(floatnum f, t_longint* longint); 44 void _not(t_longint* longint); 45 void _and(t_longint* x1, t_longint* x2); 46 void _or(t_longint* x1, t_longint* x2); 47 void _xor(t_longint* x1, t_longint* x2); 48 void _shr(t_longint* x, unsigned shift); 49 void _shl(t_longint* x, unsigned shift); 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* FLOATLOGIC_H */ 56