#include "extern.h"#include "trees.h"#include "login.h"#include "parser.h"#include "copy.h"#include "token.h"#include "print.h"#include "lefun.h"#include "memory.h"#include "modules.h"#include "built_ins.h"#include "error.h"Go to the source code of this file.
Defines | |
| #define | SINFLAG 1 |
| #define | COSFLAG 2 |
| #define | TANFLAG 3 |
Functions | |
| static long | c_mult () |
| static long | c_div () |
| static long | c_intdiv () |
| static long | c_floor_ceiling (long floorflag) |
| static long | c_floor () |
| static long | c_ceiling () |
| static long | c_sqrt () |
| static long | c_trig (long trigflag) |
| static long | c_cos () |
| static long | c_sin () |
| static long | c_tan () |
| static long | c_bit_not () |
| static long | c_bit_and () |
| static long | c_bit_or () |
| static long | c_shift () |
| static long | c_shift_left () |
| static long | c_shift_right () |
| static long | c_shift (long dir) |
| static long | c_mod () |
| static long | c_add () |
| static long | c_sub () |
| static long | c_log () |
| static long | c_exp () |
| void | insert_math_builtins () |
Variables | |
| static char | vcid [] = "$Id: bi_math.c,v 1.2 1994/12/08 23:07:37 duchier Exp $" |
| static long c_add | ( | ) | [static] |
Definition at line 1024 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), NULL, push_goal(), REAL, residuate2(), residuate3(), set_1_2, TRUE, unify, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_bit_and | ( | ) | [static] |
Definition at line 725 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, bit_and_warning(), curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), REAL, residuate(), residuate2(), set_1_2, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_bit_not | ( | ) | [static] |
Definition at line 671 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, bit_not_warning(), curry(), deref, deref_args, deref_ptr, FALSE, get_one_arg(), get_real_value(), nonnum_warning(), NULL, REAL, residuate2(), set_1, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_bit_or | ( | ) | [static] |
Definition at line 806 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, bit_or_warning(), curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), REAL, residuate(), residuate2(), set_1_2, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_ceiling | ( | ) | [static] |
Definition at line 518 of file bi_math.c.
References c_floor_ceiling(), and FALSE.
Referenced by insert_math_builtins().
| static long c_cos | ( | ) | [static] |
Definition at line 643 of file bi_math.c.
References c_trig(), and COSFLAG.
Referenced by insert_math_builtins().
| static long c_div | ( | ) | [static] |
Definition at line 170 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, Errorline(), FALSE, get_real_value(), get_two_args(), nonnum_warning(), NULL, push_goal(), REAL, residuate(), residuate2(), residuate3(), set_1_2, TRUE, unify, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_exp | ( | ) | [static] |
Definition at line 1296 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), NULL, REAL, residuate2(), set_1, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_floor | ( | ) | [static] |
Definition at line 507 of file bi_math.c.
References c_floor_ceiling(), and TRUE.
Referenced by insert_math_builtins().
| static long c_floor_ceiling | ( | long | floorflag | ) | [static] |
Definition at line 459 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, get_real_value(), get_two_args(), nonnum_warning(), NULL, REAL, residuate(), set_1, TRUE, and unify_real_result().
Referenced by c_ceiling(), and c_floor().
| static long c_intdiv | ( | ) | [static] |
Definition at line 296 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, Errorline(), FALSE, get_real_value(), get_two_args(), int_div_warning(), nonnum_warning(), NULL, push_goal(), REAL, residuate(), residuate2(), residuate3(), set_1_2, TRUE, unify, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_log | ( | ) | [static] |
Definition at line 1239 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, Errorline(), FALSE, get_one_arg(), get_real_value(), nonnum_warning(), NULL, REAL, residuate2(), set_1, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_mod | ( | ) | [static] |
Definition at line 953 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), mod_warning(), nonnum_warning(), REAL, residuate(), residuate2(), set_1_2, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_mult | ( | ) | [static] |
Definition at line 63 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), NULL, push_goal(), REAL, residuate(), residuate2(), residuate3(), set_1_2, TRUE, unify, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_shift | ( | long | dir | ) | [static] |
Definition at line 885 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), REAL, residuate(), residuate2(), set_1_2, shift_warning(), TRUE, and unify_real_result().
| static long c_shift | ( | ) | [static] |
Referenced by c_shift_left(), and c_shift_right().
| static long c_shift_left | ( | ) | [static] |
Definition at line 875 of file bi_math.c.
References c_shift(), and FALSE.
Referenced by insert_math_builtins().
| static long c_shift_right | ( | ) | [static] |
Definition at line 880 of file bi_math.c.
References c_shift(), and TRUE.
Referenced by insert_math_builtins().
| static long c_sin | ( | ) | [static] |
Definition at line 654 of file bi_math.c.
References c_trig(), and SINFLAG.
Referenced by insert_math_builtins().
| static long c_sqrt | ( | ) | [static] |
Definition at line 528 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, Errorline(), FALSE, get_one_arg(), get_real_value(), nonnum_warning(), NULL, REAL, residuate2(), set_1, TRUE, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_sub | ( | ) | [static] |
Definition at line 1136 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, curry(), deref, deref_args, deref_ptr, FALSE, get_real_value(), get_two_args(), nonnum_warning(), NULL, push_goal(), REAL, residuate2(), residuate3(), set_1_2, TRUE, unify, and unify_real_result().
Referenced by insert_math_builtins().
| static long c_tan | ( | ) | [static] |
Definition at line 664 of file bi_math.c.
References c_trig(), and TANFLAG.
Referenced by insert_math_builtins().
| static long c_trig | ( | long | trigflag | ) | [static] |
Definition at line 583 of file bi_math.c.
References wl_goal::a, aim, wl_psi_term::attr_list, wl_goal::b, COSFLAG, curry(), deref, deref_args, deref_ptr, FALSE, get_one_arg(), get_real_value(), nonnum_warning(), NULL, REAL, residuate2(), set_1, SINFLAG, TANFLAG, TRUE, and unify_real_result().
| void insert_math_builtins | ( | ) |
Definition at line 1341 of file bi_math.c.
References bi_module, c_add(), c_bit_and(), c_bit_not(), c_bit_or(), c_ceiling(), c_cos(), c_div(), c_exp(), c_floor(), c_intdiv(), c_log(), c_mod(), c_mult(), c_shift_left(), c_shift_right(), c_sin(), c_sqrt(), c_sub(), c_tan(), function, new_built_in(), and syntax_module.
Referenced by init_built_in_types().
char vcid[] = "$Id: bi_math.c,v 1.2 1994/12/08 23:07:37 duchier Exp $" [static] |
1.5.4