#include "xsb_config.h"#include "xsb_debug.h"#include <math.h>#include "auxlry.h"#include "cell_xsb.h"#include "register.h"#include "memory_xsb.h"#include "deref.h"#include "heap_xsb.h"#include "binding.h"#include "context.h"Defines | |
| #define | FUN_PLUS 1 |
| #define | FUN_MINUS 2 |
| #define | FUN_TIMES 3 |
| #define | FUN_DIVIDE 4 |
| #define | FUN_AND 5 |
| #define | FUN_OR 6 |
| #define | FUN_sin 9 |
| #define | FUN_cos 10 |
| #define | FUN_tan 11 |
| #define | FUN_float 13 |
| #define | FUN_floor 14 |
| #define | FUN_exp 15 |
| #define | FUN_log 16 |
| #define | FUN_log10 17 |
| #define | FUN_sqrt 18 |
| #define | FUN_asin 19 |
| #define | FUN_acos 20 |
| #define | FUN_atan 21 |
| #define | FUN_abs 22 |
| #define | FUN_truncate 23 |
| #define | FUN_round 24 |
| #define | FUN_ceiling 25 |
| #define | FUN_max 26 |
| #define | FUN_min 27 |
| #define | set_fvalue_from_value |
Functions | |
| void | bld_boxedfloat (CTXTdeclc CPtr, Float) |
| int | unifunc_call (CTXTdeclc int funcnum, CPtr regaddr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: if (isinteger(value)) fvalue = (Float) int_val(value); \ else if (isofloat(value)) fvalue = ofloat_val(value); \ else if (isboxedinteger(value)) fvalue = (Float) boxedint_val(value); \ else return 0 |
|
||||||||||||
|
|
|
||||||||||||
|
|
1.4.5