1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/lib/native/float.py Thu Jul 12 00:15:16 2018 +0200
1.3 @@ -0,0 +1,45 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"""
1.7 +Native library functions for floating point numbers.
1.8 +
1.9 +None of these are actually defined here. Instead, native implementations are
1.10 +substituted when each program is built. It is, however, important to declare
1.11 +non-core exceptions used by the native functions because they need to be
1.12 +identified as being needed by the program.
1.13 +
1.14 +Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.15 +
1.16 +This program is free software; you can redistribute it and/or modify it under
1.17 +the terms of the GNU General Public License as published by the Free Software
1.18 +Foundation; either version 3 of the License, or (at your option) any later
1.19 +version.
1.20 +
1.21 +This program is distributed in the hope that it will be useful, but WITHOUT
1.22 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.23 +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.24 +details.
1.25 +
1.26 +You should have received a copy of the GNU General Public License along with
1.27 +this program. If not, see <http://www.gnu.org/licenses/>.
1.28 +"""
1.29 +
1.30 +def float_add(self, other): return 0.0
1.31 +def float_div(self, other): return 0.0
1.32 +def float_mod(self, other): return 0.0
1.33 +def float_mul(self, other): return 0.0
1.34 +def float_neg(self): return 0.0
1.35 +def float_pow(self, other): return 0.0
1.36 +def float_sub(self, other): return 0.0
1.37 +
1.38 +def float_eq(self, other): return True or False
1.39 +def float_ge(self, other): return True or False
1.40 +def float_gt(self, other): return True or False
1.41 +def float_le(self, other): return True or False
1.42 +def float_lt(self, other): return True or False
1.43 +def float_ne(self, other): return True or False
1.44 +
1.45 +def float_str(self): return ""
1.46 +def float_int(self): return 0
1.47 +
1.48 +# vim: tabstop=4 expandtab shiftwidth=4