#include <stdio.h>#include <signal.h>#include <setjmp.h>#include <errno.h>#include "arith.internal.h"#include "int64.h"#include <math.h>
Go to the source code of this file.
Defines | |
| #define | double_t double |
| #define | NAT_ROUND AR_Float_IEEE_NR_64 |
| #define | NAT_COMPLEX AR_Complex_IEEE_NR_64 |
Functions | |
| int | ar_index (ar_data *result, const AR_TYPE *resulttype, const char *str1, const char *str2, const ar_data *backward) |
| int | ar_scan (ar_data *result, const AR_TYPE *resulttype, const char *str1, const char *str2, const ar_data *backward) |
| int | ar_verify (ar_data *result, const AR_TYPE *resulttype, const char *str1, const char *str2, const ar_data *backward) |
| int | ar_reshape (void *result, const void *source, const void *shape, const void *pad, const void *order) |
| int | ar_transfer (void *result, const void *source, const void *mold, long *length) |
| int | ar_modulo (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd1, const AR_TYPE *opnd1type, const ar_data *opnd2, const AR_TYPE *opnd2type) |
| int | ar_selected_real_kind (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd1, const AR_TYPE *opnd1type, const ar_data *opnd2, const AR_TYPE *opnd2type) |
| int | ar_sqrt (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd, const AR_TYPE *opndtype) |
| int | ar_log (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd, const AR_TYPE *opndtype) |
| int | ar_exp (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd, const AR_TYPE *opndtype) |
| int | ar_cabs (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd, const AR_TYPE *opndtype) |
| int | ar_power (ar_data *result, const AR_TYPE *resulttype, const ar_data *base, const AR_TYPE *basetype, const ar_data *power, const AR_TYPE *powertype) |
| int | ar_divide_complex (ar_data *result, const AR_TYPE *resulttype, const ar_data *opnd1, const AR_TYPE *opnd1type, const ar_data *opnd2, const AR_TYPE *opnd2type) |
| int | ar_convert_str_to_float (ar_data *result, const AR_TYPE *resulttype, const char *str) |
Variables | |
| int | ar_rounding_modes = 0xf |
| int | ar_underflow_modes = 1<<AR_UNDERFLOW_TO_DENORM |
| static AR_TYPE | native_round_single = NAT_ROUND |
| static AR_TYPE | native_complex = NAT_COMPLEX |
| static AR_TYPE | native_double = AR_Float_IEEE_NR_64 |
| static AR_TYPE | native_long_double = AR_Float_IEEE_NR_64 |
| static AR_TYPE | native_dbl_complex = AR_Complex_IEEE_NR_64 |
| static char | USMID [] = "\n%Z%%M% %I% %G% %U%\n" |
| #define double_t double |
| int ar_cabs | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd, | |||
| const AR_TYPE * | opndtype | |||
| ) |
Definition at line 1392 of file native.c.
References AR_add(), AR_convert(), ar_decompose_complex(), AR_multiply(), AR_NEGATIVE, AR_sqrt(), AR_STAT_NEGATIVE, AR_STAT_ZERO, AR_status(), AR_ZERO, cabs(), and double_t.
Referenced by AR_abs(), and AR_cabs().

Definition at line 1770 of file native.c.
References ar_cvt_str_to_float().
Referenced by AR_convert_str_to_float().

| int ar_divide_complex | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd1, | |||
| const AR_TYPE * | opnd1type, | |||
| const ar_data * | opnd2, | |||
| const AR_TYPE * | opnd2type | |||
| ) |
Definition at line 1694 of file native.c.
References AR_add(), ar_compose_complex(), ar_decompose_complex(), AR_divide(), AR_multiply(), AR_STAT_NEGATIVE, AR_STAT_ZERO, AR_status(), AR_subtract(), c, and d.
Referenced by AR_divide().

| int ar_exp | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd, | |||
| const AR_TYPE * | opndtype | |||
| ) |
Definition at line 1343 of file native.c.
References AR_convert(), AR_FLOAT_COMPLEX, AR_FLOAT_IS_COMPLEX, AR_NEGATIVE, AR_STAT_INVALID_TYPE, AR_status(), AR_ZERO, and double_t.
Referenced by AR_exp().

| int ar_index | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const char * | str1, | |||
| const char * | str2, | |||
| const ar_data * | backward | |||
| ) |
Definition at line 1178 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_index().
| int ar_log | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd, | |||
| const AR_TYPE * | opndtype | |||
| ) |
Definition at line 1292 of file native.c.
References AR_convert(), AR_FLOAT_COMPLEX, AR_FLOAT_IS_COMPLEX, AR_NEGATIVE, AR_STAT_INVALID_TYPE, AR_status(), AR_ZERO, and double_t.
Referenced by AR_log().

| int ar_modulo | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd1, | |||
| const AR_TYPE * | opnd1type, | |||
| const ar_data * | opnd2, | |||
| const AR_TYPE * | opnd2type | |||
| ) |
Definition at line 1222 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_Modulo().
| int ar_power | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | base, | |||
| const AR_TYPE * | basetype, | |||
| const ar_data * | power, | |||
| const AR_TYPE * | powertype | |||
| ) |
Definition at line 1443 of file native.c.
References AR_CLASS, AR_CLASS_FLOAT, AR_CLASS_INT, AR_compare(), AR_Compare_EQ, AR_const_zero, AR_convert(), AR_divide(), AR_ERROR_STATUS, AR_FLOAT_COMPLEX, AR_FLOAT_IS_COMPLEX, ar_data::ar_i64, AR_Int_64_S, AR_INT_SIZE, AR_INT_SIZE_16, AR_INT_SIZE_32, AR_INT_SIZE_46, AR_INT_SIZE_64, AR_INT_SIZE_8, AR_multiply(), AR_negate(), AR_one(), AR_STAT_INVALID_TYPE, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, AR_status(), double_t, INT_SIGN, inttype, IS_ERROR_STATUS, IS_INT64_ZERO, one, AR_INT_64::part4, and SHRIGHT64.
Referenced by AR_power().

| int ar_reshape | ( | void * | result, | |
| const void * | source, | |||
| const void * | shape, | |||
| const void * | pad, | |||
| const void * | order | |||
| ) |
Definition at line 1205 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_reshape().
| int ar_selected_real_kind | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd1, | |||
| const AR_TYPE * | opnd1type, | |||
| const ar_data * | opnd2, | |||
| const AR_TYPE * | opnd2type | |||
| ) |
Definition at line 1231 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_selected_real_kind().
| int ar_sqrt | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const ar_data * | opnd, | |||
| const AR_TYPE * | opndtype | |||
| ) |
Definition at line 1240 of file native.c.
References AR_convert(), AR_FLOAT_COMPLEX, AR_FLOAT_IS_COMPLEX, AR_NEGATIVE, AR_STAT_INVALID_TYPE, AR_status(), AR_ZERO, double_t, and sqrt().
Referenced by ar_sim(), and AR_sqrt().

| int ar_transfer | ( | void * | result, | |
| const void * | source, | |||
| const void * | mold, | |||
| long * | length | |||
| ) |
Definition at line 1214 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_transfer().
| int ar_verify | ( | ar_data * | result, | |
| const AR_TYPE * | resulttype, | |||
| const char * | str1, | |||
| const char * | str2, | |||
| const ar_data * | backward | |||
| ) |
Definition at line 1196 of file native.c.
References AR_STAT_INVALID_TYPE.
Referenced by AR_verify().
| int ar_rounding_modes = 0xf |
| int ar_underflow_modes = 1<<AR_UNDERFLOW_TO_DENORM |
AR_TYPE native_complex = NAT_COMPLEX [static] |
AR_TYPE native_dbl_complex = AR_Complex_IEEE_NR_64 [static] |
AR_TYPE native_double = AR_Float_IEEE_NR_64 [static] |
AR_TYPE native_long_double = AR_Float_IEEE_NR_64 [static] |
AR_TYPE native_round_single = NAT_ROUND [static] |
1.6.1