Searched refs:carry (Results 1 - 25 of 84) sorted by relevance

1234

/src/sys/arch/hppa/spmath/
H A Dmpyaccu.c54 int carry; local in function:mpyaccu
58 /* get result of low word add, and check for carry out */
60 carry = 1;
61 else carry = 0;
64 if ((result_hi += (unsigned)temp.rslt_hi + carry) <
H A Dmpyaccs.c53 int carry, sign; local in function:mpyaccs
57 /* get result of low word add, and check for carry out */
59 carry = 1;
60 else carry = 0;
64 result_hi += temp.rslt_hi + carry;
H A Ddivu.S76 add quo,quo,quo ; shift msb bit into carry
77 ds rem,dvr,rem ; 1st divide step, if carry
79 addc quo,quo,quo ; shift quo with/into carry
81 addc quo,quo,quo ; shift quo with/into carry
83 addc quo,quo,quo ; shift quo with/into carry
85 addc quo,quo,quo ; shift quo with/into carry
87 addc quo,quo,quo ; shift quo with/into carry
89 addc quo,quo,quo ; shift quo with/into carry
91 addc quo,quo,quo ; shift quo with/into carry
93 addc quo,quo,quo ; shift quo with/into carry
[all...]
/src/lib/libc/gdtoa/
H A Dsum.c44 ULong carry, *xc, *xa, *xb, *xe, y; local in function:sum
56 carry = 0;
63 y = (*xa & 0xffff) + (*xb & 0xffff) + carry;
64 carry = (y & 0x10000) >> 16;
65 z = (*xa++ >> 16) + (*xb++ >> 16) + carry;
66 carry = (z & 0x10000) >> 16;
72 y = (*xa & 0xffff) + carry;
73 carry = (y & 0x10000) >> 16;
74 z = (*xa++ >> 16) + carry;
75 carry
[all...]
H A Ddmisc.c118 ULLong borrow, carry, y, ys; local in function:quorem
120 ULong borrow, carry, y, ys; local in function:quorem
144 carry = 0;
147 ys = *sx++ * (ULLong)q + carry;
148 carry = ys >> 32;
157 ys = (si & 0xffff) * q + carry;
159 carry = zs >> 16;
166 ys = *sx++ * q + carry;
167 carry = ys >> 16;
185 carry
[all...]
H A Dmisc.c174 ULLong carry, y; local in function:multadd
176 ULong carry, *x, y; local in function:multadd
186 carry = a;
189 y = *x * (ULLong)m + carry;
190 carry = y >> 32;
196 y = (xi & 0xffff) * m + carry;
198 carry = z >> 16;
201 y = *x * m + carry;
202 carry = y >> 16;
208 if (carry) {
291 ULLong carry, z; local in function:mult
293 ULong carry, z; local in function:mult
[all...]
H A Dstrtodg.c58 ULong carry = 1, y; local in function:increment
73 y = *x + carry;
74 carry = y >> 16;
76 if (!carry)
79 if (carry)
186 ULong carry, inex, lostbits; local in function:rvOK
189 carry = rv = 0;
231 carry = 1;
238 if (carry) {
270 carry
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dbigmath.h38 uint32_t carry = 0; local in function:_ubm_add_u32arr
40 uint64_t sum = carry;
46 carry = sum >> 32;
61 return carry;
76 uint32_t carry = 0; local in function:_ubm_mul_u32arr
90 tmp += carry;
94 carry = tmp >> 32;
102 dst[i + b_len] = carry;
104 overflow = overflow || carry > 0;
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dbigmath.h38 uint32_t carry = 0; local in function:_ubm_add_u32arr
40 uint64_t sum = carry;
46 carry = sum >> 32;
61 return carry;
76 uint32_t carry = 0; local in function:_ubm_mul_u32arr
90 tmp += carry;
94 carry = tmp >> 32;
102 dst[i + b_len] = carry;
104 overflow = overflow || carry > 0;
/src/sys/external/bsd/compiler_rt/dist/lib/builtins/
H A Dudivsi3.c45 su_int carry = 0; local in function:__udivsi3
48 /* r:q = ((r:q) << 1) | carry */
50 q = (q << 1) | carry;
51 /* carry = 0;
55 * carry = 1;
59 carry = s & 1;
62 q = (q << 1) | carry;
H A Dudivmoddi4.c208 su_int carry = 0; local in function:__udivmoddi4
211 /* r:q = ((r:q) << 1) | carry */
215 q.s.low = (q.s.low << 1) | carry;
216 /* carry = 0;
220 * carry = 1;
224 carry = s & 1;
227 q.all = (q.all << 1) | carry;
H A Dudivmodti4.c213 su_int carry = 0; local in function:__udivmodti4
216 /* r:q = ((r:q) << 1) | carry */
220 q.s.low = (q.s.low << 1) | carry;
221 /* carry = 0;
225 * carry = 1;
229 carry = s & 1;
232 q.all = (q.all << 1) | carry;
/src/sys/external/isc/libsodium/dist/src/libsodium/include/sodium/private/
H A Ded25519_ref10_fe_51.h246 uint128_t r0, r1, r2, r3, r4, carry; local in function:fe25519_mul
300 carry = r0 >> 51;
301 r1 += carry;
303 carry = r1 >> 51;
304 r2 += carry;
306 carry = r2 >> 51;
307 r3 += carry;
309 carry = r3 >> 51;
310 r4 += carry;
312 carry
337 uint128_t r0, r1, r2, r3, r4, carry; local in function:fe25519_sq
416 uint128_t r0, r1, r2, r3, r4, carry; local in function:fe25519_sq2
[all...]
/xsrc/external/mit/xedit/dist/lisp/mp/
H A Dmp.c41 * of the first multiply (in case of carry), and then
42 * just make sure carry is properly propagated in the
186 BNS carry; /* carry flag */ local in function:mp_add
195 carry = value >> BNSBITS;
199 value = (BNI)op1[size] + op2[size] + carry;
201 carry = value >> BNSBITS;
205 value = (BNI)op1[size] + carry;
207 carry = value >> BNSBITS;
211 /* if rop == op1, than just adjust carry */
229 BNS carry; /* carry flag */ local in function:mp_sub
286 BNI carry; local in function:mp_lshift
327 BNI carry; local in function:mp_rshift
363 BNS carry; /* carry value */ local in function:mp_base_mul
585 BNS carry; local in function:mp_toom_mul
[all...]
H A Dmpi.c255 BNI carry; /* carry value */ local in function:mpi_setstr
262 carry = 0;
322 carry = value >> BNSBITS;
325 value = (BNI)rop->digs[i] * base + carry;
326 carry = value >> BNSBITS;
378 /* plus one for possible carry */
537 BNS carry, scarry, denorm; /* carry and normalization */ local in function:mpi_divqr
598 for (carry
1157 long carry = 0; local in function:mpi_ash
1558 unsigned long count, carry; local in function:mpi_getsize
[all...]
/src/common/lib/libc/arch/m68k/string/
H A Dffs.S84 lsrl #1,%d1 | shift low bit into carry
85 jcc .L1 | keep looping while carry is clear.
/src/sys/lib/libkern/arch/hppa/
H A Dmilli.S480 sub r0,arg1,temp ; clear carry, negate the divisor
483 add arg0,arg0,retreg ; shift msb bit into carry
484 ds r0,arg1,temp ; 1st divide step, if no carry
485 addc retreg,retreg,retreg ; shift retreg with/into carry
487 addc retreg,retreg,retreg ; shift retreg with/into carry
489 addc retreg,retreg,retreg ; shift retreg with/into carry
491 addc retreg,retreg,retreg ; shift retreg with/into carry
493 addc retreg,retreg,retreg ; shift retreg with/into carry
495 addc retreg,retreg,retreg ; shift retreg with/into carry
497 addc retreg,retreg,retreg ; shift retreg with/into carry
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/docs/source/cso/
H A Ddsa.rst44 The operation to carry out if the stencil test fails. One of
47 The operation to carry out if the stencil test passes but the depth test
50 The operation to carry out if the stencil test and depth test both pass.
/xsrc/external/mit/MesaLib/dist/docs/gallium/cso/
H A Ddsa.rst44 The operation to carry out if the stencil test fails. One of
47 The operation to carry out if the stencil test passes but the depth test
50 The operation to carry out if the stencil test and depth test both pass.
/src/lib/libm/src/
H A Dk_rem_pio2f.c53 int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local in function:__kernel_rem_pio2f
105 n += 1; carry = 0;
108 if(carry==0) {
110 carry = 1; iq[i] = 0x100- j;
124 if(carry!=0) z -= scalbnf(one,q0);
/src/games/adventure/
H A Dextern.h98 void carry(int, int);
H A Dvocab.c81 carry(object, from);
93 carry(int object, int where) function in typeref:typename:void
/src/common/lib/libc/arch/m68k/gen/
H A Dmuldi3.S84 addl %d0, %d1 | B += A(H) (no carry; max 0xffff0000)
87 bccs 1f | if (carry)
/src/sys/kern/
H A Dsubr_time_arith.c232 bool carry; local in function:timespecaddok
246 * Fail if a + b + carry overflows TIME_MAX, or if a + b
247 * overflows TIME_MIN because timespecadd adds the carry after
254 carry = (tsp->tv_nsec + usp->tv_nsec >= 1000000000L);
267 * If b >= 0, then a + b + carry >= a + b >= 0, so
271 * a + b + carry > TIME_MAX,
275 * b > TIME_MAX - a - carry,
289 * So we can compute TIME_MAX - a - carry (i.e., either
293 if (b > TIME_MAX - a - carry)
318 * (Reminder: The carry i
[all...]
/src/sys/arch/vax/vax/
H A Demulate.S389 addl2 %r0,%r1 # %r1 = carry + next (low) nibble of source
394 mnegl $1,%r9 # %r9 == carry = -1
398 clrl %r9 # %r9 == carry = 0
403 addl2 %r0,%r9 # %r9 = carry + next (high) nibble of source
408 mnegl $1,%r1 # %r1 == carry = -1
412 clrl %r1 # %r1 == carry = 0
423 addl2 %r0,%r1 # %r1 == carry += next (low) nibble
425 movl %r1,%r9 # %r9 == carry (must be -1)
429 clrl %r9 # %r9 == carry = 0
434 addl2 %r0,%r9 # %r9 == carry
[all...]

Completed in 47 milliseconds

1234