paul@850 | 1 | /* Native functions for floating point operations. |
paul@850 | 2 | |
paul@971 | 3 | Copyright (C) 2018, 2023 Paul Boddie <paul@boddie.org.uk> |
paul@850 | 4 | |
paul@850 | 5 | This program is free software; you can redistribute it and/or modify it under |
paul@850 | 6 | the terms of the GNU General Public License as published by the Free Software |
paul@850 | 7 | Foundation; either version 3 of the License, or (at your option) any later |
paul@850 | 8 | version. |
paul@850 | 9 | |
paul@850 | 10 | This program is distributed in the hope that it will be useful, but WITHOUT |
paul@850 | 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@850 | 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@850 | 13 | details. |
paul@850 | 14 | |
paul@850 | 15 | You should have received a copy of the GNU General Public License along with |
paul@850 | 16 | this program. If not, see <http://www.gnu.org/licenses/>. |
paul@850 | 17 | */ |
paul@850 | 18 | |
paul@850 | 19 | #ifndef __NATIVE_FLOAT_H__ |
paul@850 | 20 | #define __NATIVE_FLOAT_H__ |
paul@850 | 21 | |
paul@850 | 22 | #include "types.h" |
paul@850 | 23 | |
paul@850 | 24 | /* Floating point operations. */ |
paul@850 | 25 | |
paul@971 | 26 | __attr __fn_native_float_float_add(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 27 | __attr __fn_native_float_float_sub(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 28 | __attr __fn_native_float_float_mul(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 29 | __attr __fn_native_float_float_div(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 30 | __attr __fn_native_float_float_mod(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 31 | __attr __fn_native_float_float_neg(__attr __result, __attr __self, __attr self); |
paul@971 | 32 | __attr __fn_native_float_float_pow(__attr __result, __attr __self, __attr self, __attr other); |
paul@850 | 33 | |
paul@971 | 34 | __attr __fn_native_float_float_le(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 35 | __attr __fn_native_float_float_lt(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 36 | __attr __fn_native_float_float_ge(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 37 | __attr __fn_native_float_float_gt(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 38 | __attr __fn_native_float_float_eq(__attr __result, __attr __self, __attr self, __attr other); |
paul@971 | 39 | __attr __fn_native_float_float_ne(__attr __result, __attr __self, __attr self, __attr other); |
paul@850 | 40 | |
paul@971 | 41 | __attr __fn_native_float_float_str(__attr __result, __attr __self, __attr self); |
paul@971 | 42 | __attr __fn_native_float_float_int(__attr __result, __attr __self, __attr self); |
paul@850 | 43 | |
paul@850 | 44 | /* Module initialisation. */ |
paul@850 | 45 | |
paul@850 | 46 | void __main_native_float(); |
paul@850 | 47 | |
paul@850 | 48 | #endif /* __NATIVE_FLOAT_H__ */ |