HomeSort by: relevance | last modified time | path
    Searched refs:fe (Results 1 - 25 of 92) sorted by relevancy

1 2 3 4

  /src/sys/arch/m68k/fpe/
fpu_arith_proto.h 44 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...]
fpu_hyperb.c 78 fpu_atanh(struct fpemu *fe)
84 if (ISNAN(&fe->fe_f2))
85 return &fe->fe_f2;
86 if (ISINF(&fe->fe_f2))
87 return fpu_newnan(fe);
90 if (ISZERO(&fe->fe_f2))
91 return &fe->fe_f2;
97 r = &fe->fe_f2;
105 if (fe->fe_f2.fp_exp >= 0)
106 return fpu_newnan(fe);
    [all...]
fpu_exp.c 54 fpu_etox_taylor(struct fpemu *fe)
63 CPYFPN(&x, &fe->fe_f2);
64 CPYFPN(&s0, &fe->fe_f2);
67 fpu_const(&fe->fe_f1, FPU_CONST_1);
68 r = fpu_add(fe);
74 CPYFPN(&fe->fe_f1, &s0);
75 CPYFPN(&fe->fe_f2, &x);
76 r = fpu_mul(fe);
78 CPYFPN(&fe->fe_f1, r);
79 fpu_explode(fe, &fe->fe_f2, FTYPE_LNG, &k)
    [all...]
fpu_trig.c 68 fpu_acos(struct fpemu *fe)
72 if (ISNAN(&fe->fe_f2))
73 return &fe->fe_f2;
74 if (ISINF(&fe->fe_f2))
75 return fpu_newnan(fe);
77 r = fpu_asin(fe);
78 CPYFPN(&fe->fe_f2, r);
81 fpu_const(&fe->fe_f1, FPU_CONST_PI);
82 fe->fe_f1.fp_exp--;
83 fe->fe_f2.fp_sign = !fe->fe_f2.fp_sign
    [all...]
fpu_getexp.c 42 fpu_getexp(struct fpemu *fe)
44 struct fpn *fp = &fe->fe_f2;
46 fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
49 fp = fpu_newnan(fe);
50 fe->fe_fpsr |= FPSR_OPERR;
52 fpu_explode(fe, &fe->fe_f3, FTYPE_LNG, &fp->fp_exp);
53 fp = &fe->fe_f3;
55 fe->fe_fpsr |= FPSR_SNAN;
61 fpu_getman(struct fpemu *fe)
    [all...]
fpu_log.c 190 static struct fpn *__fpu_logn(struct fpemu *fe);
197 __fpu_logn(struct fpemu *fe)
203 CPYFPN(&X, &fe->fe_f2);
213 fpu_const(&fe->fe_f1, FPU_CONST_1);
215 d = fpu_add(fe);
218 CPYFPN(&fe->fe_f1, &X);
219 fpu_const(&fe->fe_f2, FPU_CONST_1);
220 fe->fe_f2.fp_sign = 1; /* -1.0 */
222 d = fpu_add(fe);
223 CPYFPN(&fe->fe_f1, d)
    [all...]
fpu_rem.c 77 static struct fpn * __fpu_modrem(struct fpemu *fe, int is_mod);
102 __fpu_modrem(struct fpemu *fe, int is_mod)
110 if (ISNAN(&fe->fe_f1) || ISNAN(&fe->fe_f2))
111 return fpu_newnan(fe);
112 if (ISINF(&fe->fe_f1) || ISZERO(&fe->fe_f2))
113 return fpu_newnan(fe);
115 CPYFPN(&X, &fe->fe_f1);
116 CPYFPN(&Y, &fe->fe_f2)
    [all...]
fpu_cordic.c 98 prepare_cordic_const(struct fpemu *fe)
109 CPYFPN(&fe->fe_f2, &t);
110 r = fpu_atan_taylor(fe);
118 r = fpu_gain1_cordic(fe);
119 CPYFPN(&fe->fe_f2, r);
120 fpu_const(&fe->fe_f1, FPU_CONST_1);
121 r = fpu_div(fe);
126 fpu_gain1_cordic(struct fpemu *fe)
139 fpu_cordit1(fe, &x, &y, &z, &v);
140 CPYFPN(&fe->fe_f2, &x)
    [all...]
fpu_fstore.c 45 fpu_emul_fstore(struct fpemu *fe, struct instruction *insn)
47 struct frame *frame = fe->fe_frame;
48 uint32_t *fpregs = fe->fe_fpframe->fpf_regs;
57 frame, fe->fe_fpframe);
88 fe->fe_fpsr &= ~FPSR_EXCP;
121 fpu_explode(fe, &fe->fe_f3, FTYPE_EXT, &fpregs[regnum * 3]);
127 class_name[fe->fe_f3.fp_class + 2],
128 fe->fe_f3.fp_sign ? '-' : '+', fe->fe_f3.fp_exp
    [all...]
fpu_implode.c 61 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)
98 fe->fe_fpsr |= FPSR_INEX2; /* inexact */
101 switch (fe->fe_fpcr & FPCR_ROUND) {
156 toinf(struct fpemu *fe, int sign)
161 switch (fe->fe_fpcr & FPCR_ROUND) {
190 fpu_ftoi(struct fpemu *fe, struct fpn *fp
    [all...]
fpu_emulate.c 90 static struct fpemu fe; local in function:fpu_emulate
97 fe.fe_frame = frame;
98 fe.fe_fpframe = fpf;
99 fe.fe_fpsr = fpf->fpf_fpsr;
100 fe.fe_fpcr = fpf->fpf_fpcr;
103 __func__, fe.fe_fpsr, fe.fe_fpcr));
167 sig = fpu_emul_fmovm(&fe, &insn);
170 sig = fpu_emul_fmovmcr(&fe, &insn);
176 sig = fpu_emul_fstore(&fe, &insn)
    [all...]
fpu_fscale.c 51 fpu_emul_fscale(struct fpemu *fe, struct instruction *insn)
67 frame = fe->fe_frame;
68 fpregs = &(fe->fe_fpframe->fpf_regs[0]);
70 fpsr = fe->fe_fpsr & ~FPSR_EXCP & ~FPSR_CCB;
72 printf("fpu_emul_fscale: FPSR = %08x, FPCR = %08x\n", fpsr, fe->fe_fpcr);
79 fe->fe_fpcr &= FPCR_ROUND;
80 fe->fe_fpcr |= FPCR_ZERO;
92 fpu_explode(fe, &fe->fe_f2, FTYPE_EXT, &fpregs[format * 3]);
93 fpu_implode(fe, &fe->fe_f2, FTYPE_LNG, buf)
    [all...]
fpu_int.c 43 fpu_intrz(struct fpemu *fe)
45 struct fpn *x = &fe->fe_f2;
78 fpu_int(struct fpemu *fe)
80 struct fpn *x = &fe->fe_f2;
98 fpu_round(fe, x);
fpu_fmovecr.c 101 fpu_emul_fmovecr(struct fpemu *fe, struct instruction *insn)
108 fpreg = &(fe->fe_fpframe->fpf_regs[0]);
110 (void)fpu_const(&fe->fe_f3, offset);
111 (void)fpu_upd_fpsr(fe, &fe->fe_f3);
112 fpu_implode(fe, &fe->fe_f3, FTYPE_EXT, &fpreg[dstreg * 3]);
fpu_add.c 61 fpu_add(struct fpemu *fe)
63 struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
92 return (fpu_newnan(fe));
95 rd = (fe->fe_fpcr & FPCR_ROUND);
112 r = &fe->fe_f3;
fpu_div.c 153 fpu_div(struct fpemu *fe)
155 struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2;
160 fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
184 return (fpu_newnan(fe));
197 fe->fe_fpsr |= FPSR_DZ;
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_scalarmult/curve25519/sandy2x/
fe.h 2 This file is adapted from ref10/fe.h:
12 typedef uint64_t fe[10]; typedef in typeref:typename:uint64_t[10]
15 fe means field element.
24 extern void fe_frombytes(fe, const unsigned char *);
ladder.h 8 #include "fe.h"
11 extern void ladder(fe *, const unsigned char *);
ladder_base.h 8 #include "fe.h"
11 extern void ladder_base(fe *, const unsigned char *);
  /src/sys/arch/sparc/fpu/
fpu_implode.c 82 round(struct fpemu *fe, struct fpn *fp)
103 fe->fe_cx |= FSR_NX; /* inexact */
106 switch ((fe->fe_fsr >> FSR_RD_SHIFT) & FSR_RD_MASK) {
163 toinf(struct fpemu *fe, int sign)
168 switch ((fe->fe_fsr >> FSR_RD_SHIFT) & FSR_RD_MASK) {
197 fpu_ftoi(struct fpemu *fe, struct fpn *fp)
223 fe->fe_cx |= FSR_NX;
233 fe->fe_cx = (fe->fe_cx & ~FSR_NX) | FSR_NV;
245 fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res
    [all...]
fpu_compare.c 76 fpu_compare(struct fpemu *fe, int cmpe)
82 a = &fe->fe_f1;
83 b = &fe->fe_f2;
92 fe->fe_cx = FSR_NV;
151 a = fpu_sub(fe);
158 fe->fe_fsr = (fe->fe_fsr & ~FSR_FCC) | (cc << FSR_FCC_SHIFT);
fpu.c 141 struct fpemu fe; local in function:fpu_cleanup
203 fe.fe_fpstate = fs;
210 error = fpu_execute(&fe, instr);
279 fe.fe_fsr = fs->fs_fsr &= ~FSR_CX;
280 error = fpu_execute(&fe, fs, instr);
294 * FBfcc or STF, for instance). On return, fe->fe_fs->fs_fsr will be
301 fpu_execute(struct fpemu *fe, union instr instr)
348 fs = fe->fe_fpstate;
349 fe->fe_fsr = fs->fs_fsr & ~FSR_CX;
350 fe->fe_cx = 0
    [all...]
  /src/sys/arch/powerpc/fpu/
fpu_emu.c 211 struct fpemu fe; local in function:fpu_emulate
218 fe.fe_fpstate = fpf;
219 fe.fe_cx = 0;
246 switch (fpu_execute(tf, &fe, &insn)) {
268 ksi->ksi_addr = (void *)fe.fe_addr;
337 * FBfcc or STF, for instance). On return, fe->fe_fs->fs_fsr will be
344 fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
356 fs = fe->fe_fpstate;
357 fe->fe_fpscr = ((int *)&fs->fpscr)[1];
415 fe->fe_addr = addr
    [all...]
fpu_compare.c 77 fpu_compare(struct fpemu *fe, int ordered)
82 fe->fe_fpscr &= ~FPSCR_FPCC;
84 a = &fe->fe_f1;
85 b = &fe->fe_f2;
98 if ((fe->fe_fpscr & FPSCR_VE) == 0 ||
156 r = fpu_sub(fe);
164 fe->fe_cx = cc;
fpu_div.c 157 fpu_div(struct fpemu *fe)
159 struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2;
186 fe->fe_cx |= FPSCR_VXSNAN;
198 fe->fe_cx |= FPSCR_VXIDI;
199 return (fpu_newnan(fe));
206 fe->fe_cx |= FPSCR_VXZDZ;
207 return (fpu_newnan(fe));
221 fe->fe_cx = FPSCR_ZX;

Completed in 18 milliseconds

1 2 3 4