\f
-GUILE_PROC (scm_exact_p, "exact?", 1, 0, 0,
+SCM_DEFINE (scm_exact_p, "exact?", 1, 0, 0,
(SCM x),
"")
#define FUNC_NAME s_scm_exact_p
}
#undef FUNC_NAME
-GUILE_PROC (scm_odd_p, "odd?", 1, 0, 0,
+SCM_DEFINE (scm_odd_p, "odd?", 1, 0, 0,
(SCM n),
"")
#define FUNC_NAME s_scm_odd_p
}
#undef FUNC_NAME
-GUILE_PROC (scm_even_p, "even?", 1, 0, 0,
+SCM_DEFINE (scm_even_p, "even?", 1, 0, 0,
(SCM n),
"")
#define FUNC_NAME s_scm_even_p
}
#undef FUNC_NAME
-GUILE_PROC (scm_logtest, "logtest", 2, 0, 0,
+SCM_DEFINE (scm_logtest, "logtest", 2, 0, 0,
(SCM n1, SCM n2),
"")
#define FUNC_NAME s_scm_logtest
#undef FUNC_NAME
-GUILE_PROC (scm_logbit_p, "logbit?", 2, 0, 0,
+SCM_DEFINE (scm_logbit_p, "logbit?", 2, 0, 0,
(SCM n1, SCM n2),
"")
#define FUNC_NAME s_scm_logbit_p
}
#undef FUNC_NAME
-GUILE_PROC (scm_logtest, "logtest", 2, 0, 0,
+SCM_DEFINE (scm_logtest, "logtest", 2, 0, 0,
(SCM n1, SCM n2),
"@example
(logtest j k) @equiv{} (not (zero? (logand j k)))
}
#undef FUNC_NAME
-GUILE_PROC (scm_logbit_p, "logbit?", 2, 0, 0,
+SCM_DEFINE (scm_logbit_p, "logbit?", 2, 0, 0,
(SCM n1, SCM n2),
"@example
(logbit? index j) @equiv{} (logtest (integer-expt 2 index) j)
#undef FUNC_NAME
#endif
-GUILE_PROC (scm_lognot, "lognot", 1, 0, 0,
+SCM_DEFINE (scm_lognot, "lognot", 1, 0, 0,
(SCM n),
"Returns the integer which is the 2s-complement of the integer argument.
}
#undef FUNC_NAME
-GUILE_PROC (scm_integer_expt, "integer-expt", 2, 0, 0,
+SCM_DEFINE (scm_integer_expt, "integer-expt", 2, 0, 0,
(SCM z1, SCM z2),
"Returns @var{n} raised to the non-negative integer exponent @var{k}.
}
#undef FUNC_NAME
-GUILE_PROC (scm_ash, "ash", 2, 0, 0,
+SCM_DEFINE (scm_ash, "ash", 2, 0, 0,
(SCM n, SCM cnt),
"Returns an integer equivalent to
@code{(inexact->exact (floor (* @var{int} (expt 2 @var{count}))))}.@refill
#undef FUNC_NAME
/* GJB:FIXME: do not use SCMs as integers! */
-GUILE_PROC (scm_bit_extract, "bit-extract", 3, 0, 0,
+SCM_DEFINE (scm_bit_extract, "bit-extract", 3, 0, 0,
(SCM n, SCM start, SCM end),
"Returns the integer composed of the @var{start} (inclusive) through
@var{end} (exclusive) bits of @var{n}. The @var{start}th bit becomes
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4
};
-GUILE_PROC (scm_logcount, "logcount", 1, 0, 0,
+SCM_DEFINE (scm_logcount, "logcount", 1, 0, 0,
(SCM n),
"Returns the number of bits in integer @var{n}. If integer is positive,
the 1-bits in its binary representation are counted. If negative, the
0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4
};
-GUILE_PROC (scm_integer_length, "integer-length", 1, 0, 0,
+SCM_DEFINE (scm_integer_length, "integer-length", 1, 0, 0,
(SCM n),
"Returns the number of bits neccessary to represent @var{n}.
#endif
-GUILE_PROC (scm_number_to_string, "number->string", 1, 1, 0,
+SCM_DEFINE (scm_number_to_string, "number->string", 1, 1, 0,
(SCM x, SCM radix),
"")
#define FUNC_NAME s_scm_number_to_string
}
-GUILE_PROC (scm_string_to_number, "string->number", 1, 1, 0,
+SCM_DEFINE (scm_string_to_number, "string->number", 1, 1, 0,
(SCM str, SCM radix),
"")
#define FUNC_NAME s_scm_string_to_number
SCM_REGISTER_PROC (s_number_p, "number?", 1, 0, 0, scm_number_p);
-GUILE_PROC (scm_number_p, "complex?", 1, 0, 0,
+SCM_DEFINE (scm_number_p, "complex?", 1, 0, 0,
(SCM x),
"")
#define FUNC_NAME s_scm_number_p
SCM_REGISTER_PROC (s_real_p, "real?", 1, 0, 0, scm_real_p);
-GUILE_PROC (scm_real_p, "rational?", 1, 0, 0,
+SCM_DEFINE (scm_real_p, "rational?", 1, 0, 0,
(SCM x),
"")
#define FUNC_NAME s_scm_real_p
-GUILE_PROC (scm_integer_p, "integer?", 1, 0, 0,
+SCM_DEFINE (scm_integer_p, "integer?", 1, 0, 0,
(SCM x),
"")
#define FUNC_NAME s_scm_integer_p
#endif /* SCM_FLOATS */
-GUILE_PROC (scm_inexact_p, "inexact?", 1, 0, 0,
+SCM_DEFINE (scm_inexact_p, "inexact?", 1, 0, 0,
(SCM x),
"")
#define FUNC_NAME s_scm_inexact_p
-GUILE_PROC (scm_sys_expt, "$expt", 2, 0, 0,
+SCM_DEFINE (scm_sys_expt, "$expt", 2, 0, 0,
(SCM z1, SCM z2),
"")
#define FUNC_NAME s_scm_sys_expt
-GUILE_PROC (scm_sys_atan2, "$atan2", 2, 0, 0,
+SCM_DEFINE (scm_sys_atan2, "$atan2", 2, 0, 0,
(SCM z1, SCM z2),
"")
#define FUNC_NAME s_scm_sys_atan2
-GUILE_PROC (scm_make_rectangular, "make-rectangular", 2, 0, 0,
+SCM_DEFINE (scm_make_rectangular, "make-rectangular", 2, 0, 0,
(SCM z1, SCM z2),
"")
#define FUNC_NAME s_scm_make_rectangular
-GUILE_PROC (scm_make_polar, "make-polar", 2, 0, 0,
+SCM_DEFINE (scm_make_polar, "make-polar", 2, 0, 0,
(SCM z1, SCM z2),
"")
#define FUNC_NAME s_scm_make_polar
}
-GUILE_PROC (scm_inexact_to_exact, "inexact->exact", 1, 0, 0,
+SCM_DEFINE (scm_inexact_to_exact, "inexact->exact", 1, 0, 0,
(SCM z),
"")
#define FUNC_NAME s_scm_inexact_to_exact