Home
last modified time | relevance | path

Searched refs:fpn (Results 1 – 25 of 51) sorted by relevance

123

/netbsd-src/sys/arch/m68k/fpe/
H A Dfpu_arith_proto.h44 struct fpn * fpu_add(struct fpemu *fe);
47 struct fpn * fpu_div(struct fpemu *fe);
50 struct fpn * fpu_etox(struct fpemu *fe);
51 struct fpn * fpu_etoxm1(struct fpemu *fe);
52 struct fpn * fpu_tentox(struct fpemu *fe);
53 struct fpn * fpu_twotox(struct fpemu *fe);
56 struct fpn * fpu_getexp(struct fpemu *fe);
57 struct fpn * fpu_getman(struct fpemu *fe);
60 struct fpn * fpu_atanh(struct fpemu *fe);
61 struct fpn * fpu_cosh(struct fpemu *fe);
[all …]
H A Dfpu_emulate.h79 struct fpn { struct
94 static inline void CPYFPN(struct fpn *, const struct fpn *); argument
97 CPYFPN(struct fpn *dst, const struct fpn *src) in CPYFPN()
139 struct fpn *swap; \
151 struct fpn fe_f1; /* operand 1 */
152 struct fpn fe_f2; /* operand 2, if required */
153 struct fpn fe_f3; /* available storage for result */
216 struct fpn *fpu_newnan(struct fpemu *);
223 int fpu_shr(struct fpn *, int);
227 int fpu_round(struct fpemu *, struct fpn *);
[all …]
H A Dfpu_cordic.c60 static struct fpn *fpu_gain1_cordic(struct fpemu *);
61 static struct fpn *fpu_atan_taylor(struct fpemu *);
62 static void printf_fpn(const struct fpn *);
64 static void fpn_to_sfpn(struct sfpn *, const struct fpn *);
67 static struct fpn inv_gain1;
74 struct fpn fp; in main()
100 struct fpn t; in prepare_cordic_const()
101 struct fpn x; in prepare_cordic_const()
102 struct fpn *r; in prepare_cordic_const()
125 static struct fpn *
[all …]
H A Dfpu_trig.c67 struct fpn *
70 struct fpn *r; in fpu_acos()
94 struct fpn *
97 struct fpn x; in fpu_asin()
98 struct fpn *r; in fpu_asin()
146 struct fpn *
149 struct fpn a; in fpu_atan()
150 struct fpn x; in fpu_atan()
151 struct fpn v; in fpu_atan()
183 __fpu_sincos_cordic(struct fpemu *fe, const struct fpn *in) in __fpu_sincos_cordic()
[all …]
H A Dfpu_exp.c53 static struct fpn *
56 struct fpn res; in fpu_etox_taylor()
57 struct fpn x; in fpu_etox_taylor()
58 struct fpn s0; in fpu_etox_taylor()
59 struct fpn *s1; in fpu_etox_taylor()
60 struct fpn *r; in fpu_etox_taylor()
108 struct fpn *
111 struct fpn x, *fp; in fpu_etox()
175 struct fpn *
178 struct fpn *fp; in fpu_etoxm1()
[all …]
H A Dfpu_hyperb.c77 struct fpn *
80 struct fpn x; in fpu_atanh()
81 struct fpn t; in fpu_atanh()
82 struct fpn *r; in fpu_atanh()
141 struct fpn *
144 struct fpn x, *fp; in fpu_cosh()
181 struct fpn *
184 struct fpn x, *fp; in fpu_sinh()
217 struct fpn *
220 struct fpn x; in fpu_tanh()
[all …]
H A Dfpu_rem.c77 static struct fpn * __fpu_modrem(struct fpemu *fe, int is_mod);
78 static int abscmp3(const struct fpn *a, const struct fpn *b);
82 abscmp3(const struct fpn *a, const struct fpn *b) in abscmp3()
101 static struct fpn *
104 static struct fpn X, Y; in __fpu_modrem()
105 struct fpn *x, *y, *r; in __fpu_modrem()
217 struct fpn *
223 struct fpn *
H A Dfpu_explode.c62 static int fpu_itof(struct fpn *fp, uint32_t i);
63 static int fpu_stof(struct fpn *fp, uint32_t i);
64 static int fpu_dtof(struct fpn *fp, uint32_t i, uint32_t j);
65 static int fpu_xtof(struct fpn *fp, uint32_t i, uint32_t j, uint32_t k);
90 fpu_itof(struct fpn *fp, uint32_t i) in fpu_itof()
146 fpu_stof(struct fpn *fp, uint32_t i) in fpu_stof()
164 fpu_dtof(struct fpn *fp, uint32_t i, uint32_t j) in fpu_dtof()
183 fpu_xtof(struct fpn *fp, uint32_t i, uint32_t j, uint32_t k) in fpu_xtof()
225 fpu_explode(struct fpemu *fe, struct fpn *fp, int type, const uint32_t *space) in fpu_explode()
H A Dfpu_implode.c61 static uint32_t fpu_ftoi(struct fpemu *fe, struct fpn *fp);
62 static uint32_t fpu_ftos(struct fpemu *fe, struct fpn *fp);
63 static uint32_t fpu_ftod(struct fpemu *fe, struct fpn *fp, uint32_t *);
64 static uint32_t fpu_ftox(struct fpemu *fe, struct fpn *fp, uint32_t *);
79 fpu_round(struct fpemu *fe, struct fpn *fp) in fpu_round()
190 fpu_ftoi(struct fpemu *fe, struct fpn *fp) in fpu_ftoi()
240 fpu_ftos(struct fpemu *fe, struct fpn *fp) in fpu_ftos()
324 fpu_ftod(struct fpemu *fe, struct fpn *fp, uint32_t *res) in fpu_ftod()
386 fpu_ftox(struct fpemu *fe, struct fpn *fp, uint32_t *res) in fpu_ftox()
459 fpu_implode(struct fpemu *fe, struct fpn *fp, int type, uint32_t *space) in fpu_implode()
H A Dfpu_getexp.c41 struct fpn *
44 struct fpn *fp = &fe->fe_f2; in fpu_getexp()
60 struct fpn *
63 struct fpn *fp = &fe->fe_f2; in fpu_getman()
H A Dfpu_int.c42 struct fpn *
45 struct fpn *x = &fe->fe_f2; in fpu_intrz()
77 struct fpn *
80 struct fpn *x = &fe->fe_f2; in fpu_int()
H A Dfpu_log.c190 static struct fpn *__fpu_logn(struct fpemu *fe);
196 static struct fpn *
199 static struct fpn X, F, U, V, W, KLOG2; in __fpu_logn()
200 struct fpn *d; in __fpu_logn()
477 struct fpn *
480 struct fpn *fp = &fe->fe_f2; in fpu_log10()
514 struct fpn *
517 struct fpn *fp = &fe->fe_f2; in fpu_log2()
558 struct fpn *
561 struct fpn *fp = &fe->fe_f2; in fpu_logn()
[all …]
H A Dfpu_fmovecr.c48 static struct fpn constrom[] = {
74 struct fpn *
75 fpu_const(struct fpn *fp, uint32_t offset) in fpu_const()
77 struct fpn *r; in fpu_const()
H A Dfpu_subr.c84 fpu_shr(struct fpn *fp, int rsh) in fpu_shr()
151 fpu_norm(struct fpn *fp) in fpu_norm()
218 struct fpn *
221 struct fpn *fp; in fpu_newnan()
H A Dfpu_mul.c99 struct fpn *
102 struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2; in fpu_mul()
/netbsd-src/sys/arch/sparc/fpu/
H A Dfpu_extern.h46 struct fpn;
59 struct fpn *fpu_add(struct fpemu *);
65 struct fpn *fpu_div(struct fpemu *);
68 int fpu_itof(struct fpn *, u_int);
70 int fpu_xtof(struct fpn *, uint64_t);
72 int fpu_stof(struct fpn *, u_int);
73 int fpu_dtof(struct fpn *, u_int, u_int );
74 int fpu_qtof(struct fpn *, u_int, u_int , u_int , u_int );
75 void fpu_explode(struct fpemu *, struct fpn *, int, int );
78 u_int fpu_ftoi(struct fpemu *, struct fpn *);
[all …]
H A Dfpu_emu.h82 struct fpn { struct
134 struct fpn *swap; \
149 struct fpn fe_f1; /* operand 1 */
150 struct fpn fe_f2; /* operand 2, if required */
151 struct fpn fe_f3; /* available storage for result */
159 struct fpn *fpu_add(struct fpemu *);
161 struct fpn *fpu_mul(struct fpemu *);
162 struct fpn *fpu_div(struct fpemu *);
163 struct fpn *fpu_sqrt(struct fpemu *);
173 struct fpn *fpu_newnan(struct fpemu *);
[all …]
H A Dfpu_explode.c89 fpu_itof(struct fpn *fp, u_int i) in fpu_itof()
114 fpu_xtof(struct fpn *fp, uint64_t i) in fpu_xtof()
174 fpu_stof(struct fpn *fp, u_int i) in fpu_stof()
192 fpu_dtof(struct fpn *fp, u_int i, u_int j) in fpu_dtof()
211 fpu_qtof(struct fpn *fp, u_int i, u_int j, u_int k, u_int l) in fpu_qtof()
237 fpu_explode(struct fpemu *fe, struct fpn *fp, int type, int reg) in fpu_explode()
H A Dfpu_implode.c66 static int round(struct fpemu *, struct fpn *);
82 round(struct fpemu *fe, struct fpn *fp) in round()
197 fpu_ftoi(struct fpemu *fe, struct fpn *fp) in fpu_ftoi()
245 fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res) in fpu_ftox()
294 fpu_ftos(struct fpemu *fe, struct fpn *fp) in fpu_ftos()
376 fpu_ftod(struct fpemu *fe, struct fpn *fp, u_int *res) in fpu_ftod()
434 fpu_ftoq(struct fpemu *fe, struct fpn *fp, u_int *res) in fpu_ftoq()
491 fpu_implode(struct fpemu *fe, struct fpn *fp, int type, u_int *space) in fpu_implode()
H A Dfpu_subr.c69 fpu_shr(struct fpn *fp, int rsh) in fpu_shr()
143 fpu_norm(struct fpn *fp) in fpu_norm()
210 struct fpn *
213 struct fpn *fp; in fpu_newnan()
/netbsd-src/sys/arch/powerpc/fpu/
H A Dfpu_emu.h78 struct fpn { struct
132 struct fpn *swap; \
154 struct fpn fe_f1; /* operand 1 */
155 struct fpn fe_f2; /* operand 2, if required */
156 struct fpn fe_f3; /* available storage for result */
165 struct fpn *fpu_add(struct fpemu *);
166 struct fpn *fpu_mul(struct fpemu *);
167 struct fpn *fpu_div(struct fpemu *);
168 struct fpn *fpu_sqrt(struct fpemu *);
170 static inline struct fpn *
[all …]
H A Dfpu_explode.c63 static int fpu_itof(struct fpn *, u_int);
64 static int fpu_xtof(struct fpn *, uint64_t);
65 static int fpu_stof(struct fpn *, u_int);
66 static int fpu_dtof(struct fpn *, u_int, u_int);
91 fpu_itof(struct fpn *fp, u_int lo) in fpu_itof()
115 fpu_xtof(struct fpn *fp, uint64_t i) in fpu_xtof()
174 fpu_stof(struct fpn *fp, u_int hi) in fpu_stof()
192 fpu_dtof(struct fpn *fp, u_int hi, u_int lo) in fpu_dtof()
214 fpu_explode(struct fpemu *fe, struct fpn *fp, int type, uint64_t i) in fpu_explode()
H A Dfpu_implode.c63 static int round(struct fpemu *, struct fpn *, int *);
65 static int round_int(struct fpn *, int *, int, int, int);
67 static u_int fpu_ftoi(struct fpemu *, struct fpn *, int *, int);
68 static uint64_t fpu_ftox(struct fpemu *, struct fpn *, int *, int);
69 static u_int fpu_ftos(struct fpemu *, struct fpn *, int *);
70 static uint64_t fpu_ftod(struct fpemu *, struct fpn *, int *);
85 round(struct fpemu *fe, struct fpn *fp, int *cx) in round()
197 round_int(struct fpn *fp, int *cx, int rn, int sign, int odd) in round_int()
234 fpu_ftoi(struct fpemu *fe, struct fpn *fp, int *cx, int rn) in fpu_ftoi()
286 fpu_ftox(struct fpemu *fe, struct fpn *fp, int *cx, int rn) in fpu_ftox()
[all …]
H A Dfpu_subr.c68 fpu_shr(struct fpn *fp, int rsh) in fpu_shr()
137 fpu_norm(struct fpn *fp) in fpu_norm()
204 struct fpn *
207 struct fpn *fp; in fpu_newnan()
/netbsd-src/dist/pf/usr.sbin/ftp-proxy/
H A Dipf.c129 struct ftp_proxy_nat *fpn; in ftp_proxy_entry_remove() local
131 while ((fpn = LIST_FIRST(&fpe->nat_entries)) != NULL) { in ftp_proxy_entry_remove()
132 LIST_REMOVE(fpn, link); in ftp_proxy_entry_remove()
133 free(fpn); in ftp_proxy_entry_remove()
156 struct ftp_proxy_nat *fpn; in ftp_proxy_entry_add_nat() local
158 fpn = malloc(sizeof(*fpn)); in ftp_proxy_entry_add_nat()
159 if (fpn == NULL) in ftp_proxy_entry_add_nat()
162 memcpy(&fpn->ipn, ipn, sizeof(fpn->ipn)); in ftp_proxy_entry_add_nat()
163 LIST_INSERT_HEAD(&fpe->nat_entries, fpn, link); in ftp_proxy_entry_add_nat()
287 struct ftp_proxy_nat *fpn; in ipf_do_commit() local
[all …]

123