* @deftypefunx jit_value_t jit_insn_asin (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_atan (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_atan2 (jit_function_t @var{func}, jit_value_t @var{value1}, jit_value_t @var{value2})
- * @deftypefunx jit_value_t jit_insn_ceil (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_cos (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_cosh (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_exp (jit_function_t @var{func}, jit_value_t @var{value1})
- * @deftypefunx jit_value_t jit_insn_floor (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_log (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_log10 (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_pow (jit_function_t @var{func}, jit_value_t @var{value1}, jit_value_t @var{value2})
- * @deftypefunx jit_value_t jit_insn_rint (jit_function_t @var{func}, jit_value_t @var{value1})
- * @deftypefunx jit_value_t jit_insn_round (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_sin (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_sinh (jit_function_t @var{func}, jit_value_t @var{value1})
* @deftypefunx jit_value_t jit_insn_sqrt (jit_function_t @var{func}, jit_value_t @var{value1})
return apply_arith(func, &atan2_descr, value1, value2, 0, 1, 0);
}
+/*@
+ * @deftypefun jit_value_t jit_insn_ceil (jit_function_t @var{func}, jit_value_t @var{value1})
+ * Round @var{value1} up towads positive infinity.
+ * @end deftypefun
+@*/
jit_value_t jit_insn_ceil(jit_function_t func, jit_value_t value1)
{
static jit_opcode_descr const ceil_descr = {
return apply_unary_arith(func, &exp_descr, value1, 0, 1, 0);
}
+/*@
+ * @deftypefun jit_value_t jit_insn_floor (jit_function_t @var{func}, jit_value_t @var{value1})
+ * Round @var{value1} down towards negative infinity.
+ * @end deftypefun
+@*/
jit_value_t jit_insn_floor(jit_function_t func, jit_value_t value1)
{
static jit_opcode_descr const floor_descr = {
return apply_arith(func, &pow_descr, value1, value2, 0, 1, 0);
}
+/*@
+ * @deftypefun jit_value_t jit_insn_rint (jit_function_t @var{func}, jit_value_t @var{value1})
+ * Round @var{value1} to the nearest integer. Half-way cases are rounded to the even number.
+ * @end deftypefun
+@*/
jit_value_t jit_insn_rint(jit_function_t func, jit_value_t value1)
{
static jit_opcode_descr const rint_descr = {
return apply_unary_arith(func, &rint_descr, value1, 0, 1, 0);
}
+/*@
+ * @deftypefun jit_value_t jit_insn_round (jit_function_t @var{func}, jit_value_t @var{value1})
+ * Round @var{value1} to the nearest integer. Half-way cases are rounded away from zero.
+ * @end deftypefun
+@*/
jit_value_t jit_insn_round(jit_function_t func, jit_value_t value1)
{
static jit_opcode_descr const round_descr = {
return apply_unary_arith(func, &tanh_descr, value1, 0, 1, 0);
}
+/*@
+ * @deftypefun jit_value_t jit_insn_trunc (jit_function_t @var{func}, jit_value_t @var{value1})
+ * Round @var{value1} towards zero.
+ * @end deftypefun
+@*/
jit_value_t jit_insn_trunc(jit_function_t func, jit_value_t value1)
{
static jit_opcode_descr const trunc_descr = {