Searched defs:round (Results 1 - 25 of 27) sorted by relevance

12

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dbigfloat.pl42 # fround(NSTR, SCALE) return NSTR round to SCALE digits
43 # ffround(NSTR, SCALE) return NSTR round at SCALEth place
145 &norm(&round(&'bdiv($xm.('0' x $scale),$ym),&'babs($ym)),
151 # round int $q based on fraction $r/$base using $rnd_mode
152 sub round { #(int_str, int_str, int_str) return int_str
167 $q; # round down
170 # round up
175 # round the mantissa of $x to $scale digits
185 &norm(&round(substr($xm,$[,$scale+1),
193 # round
149 sub round { #(int_str, int_str, int_str) return int_str subroutine
[all...]
/osnet-11/usr/src/lib/libc/sparc/fp/
H A D_Q_qtoi.c42 int i, round; local
90 round = i & ((1 << (0x401d - (xm >> 16))) - 1);
94 if (round | (x->l.frac2 & 0x3ffff) | x->l.frac3 | x->l.frac4) {
H A D_Q_qtou.c43 int i, round; local
143 round = i & ((1 << (0x401d - (xm >> 16))) - 1);
147 if (round | (x->l.frac2 & 0x3ffff) | x->l.frac3 | x->l.frac4) {
H A D_Q_qtod.c42 unsigned int xm, round, sticky, fsr, rm; local
126 round = x->l.frac3 & 0x10000000;
130 sticky |= round | (u.l.lo & 0x7fffffff);
131 round = u.l.lo & 0x80000000;
137 sticky |= round | (u.l.lo & ((1 << (e - 1)) - 1));
138 round = u.l.lo & (1 << (e - 1));
146 round = x->l.frac3 & 0x8000000;
150 /* see if we need to round */
152 if (round | sticky) {
157 /* round u
[all...]
H A D_Q_qtos.c45 unsigned int xm, round, sticky, fsr, rm; local
122 round = u.l & (1 << e);
129 round = x->l.frac2 & 0x1000000;
133 /* see if we need to round */
135 if (round | sticky) {
140 /* round up if necessary */
141 if (rm == FSR_RP || (rm == FSR_RN && round && (sticky ||
143 /* round up and check for overflow */
H A D__quad_mag.c49 unsigned int round, sticky, carry, rm; local
69 round = sticky = 0;
81 round = frac2 & 0x80000000;
87 round = frac3 & 0x80000000;
94 round = frac4 & 0x80000000;
102 sticky |= round | (frac4 & ((1 << (e - 1)) - 1));
103 round = frac4 & (1 << (e - 1));
133 sticky |= round;
134 round = frac4 & 1;
152 /* see if we need to round */
209 unsigned int guard, round, sticky, borrow, rm; local
[all...]
/osnet-11/usr/src/lib/libc/sparcv9/fp/
H A D_Qp_qtoux.c38 unsigned long i, round; local
141 round = i & ((1l << (0x403d - (xm >> 16))) - 1);
145 if (round | (x->l.frac3 & 0x3ffff) | x->l.frac4) {
H A D_Qp_qtox.c37 long i, round; local
89 round = i & ((1l << (0x403d - (xm >> 16))) - 1);
93 if (round | (x->l.frac3 & 0x3ffff) | x->l.frac4) {
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfrd.c137 { reg ssize_t a, round; local
169 if(r > (round = (1 + (n+a)/f->size)*f->size) )
170 r = round;
/osnet-11/usr/src/lib/libc/port/fp/
H A Dpack_float.c100 round(unpacked *pu, int roundword, enum fp_direction_type rd, int *ex) function
106 int increment; /* boolean to indicate round up */
134 msw = pu->significand[0]; /* save msw before round */
149 pu->significand[roundword - 1] &= ~1; /* force round to even */
183 round(pu, 1, rd, &e);
196 round(pu, 1, rd, &e);
250 round(pu, 2, rd, &e);
266 round(pu, 2, rd, &e);
320 round(pu, 2, rd, &e);
336 round(p
[all...]
H A Ddouble_decim.c179 char s[4], round; local
197 * Determine the power of ten after which to round and the
269 round = pd->ds[--is];
282 /* round */
283 if (round == '0' && sticky == 0)
290 if (round < '5' || (round == '5' && sticky == 0 &&
309 /* round up */
/osnet-11/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c249 int round; local
326 for (round = 0; round < maxrounds; round++) {
348 data.shift_a = md5bit(data.digest, round);
349 data.shift_b = md5bit(data.digest, round + 64);
426 (void) snprintf(data.roundascii, ROUND_BUFFER_LEN, "%d", round);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DBigRat.pm451 $x->bnorm()->round(@r);
469 $x->badd($y,@r); # does norm and round
522 $x->bnorm()->round(@r);
561 $x->bnorm()->round(@r);
617 $x->bnorm()->round(@r);
649 $x->bnorm()->round(@r);
678 $x->bnorm()->round(@r);
829 return $x->round(@r);
849 return $x->round(@r) if $x->is_one() || $y->is_one();
853 return $y->is_odd() ? $x->round(
1078 sub round subroutine
[all...]
H A DBigInt.pm196 require Carp; Carp::croak ("Unknown round mode '$m'");
505 $self->round($a,$p,$r) unless (@_ == 4 && !defined $a && !defined $p);
592 # if any of the globals is set, use them to round and store them inside $self
593 # do not round for new($x,undef,undef) since that is used by MBF to signal
595 $self->round($a,$p,$r) unless @_ == 4 && !defined $a && !defined $p;
814 # After any operation or when calling round(), the result is rounded by
817 # !!!!!!! If you change this, remember to change round(), too! !!!!!!!!!!
819 # This procedure finds the round parameters, but it is for speed reasons
820 # duplicated in round. Otherwise, it is tested by the testsuite and used
873 require Carp; Carp::croak ("Unknown round mod
879 sub round subroutine
[all...]
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmmopen.c73 size_t round; /* amount to round to */ member in struct:_mmvm_s
85 static int mmvminit(char* file, Void_t* addr, size_t round, Mmvm_t* mm) argument
87 static int mmvminit(file, addr, round, mm)
90 size_t round; /* amount to round requests */
124 size = (off_t)round;
141 hdr->round = round;
184 ((nsize % disc->round) < (dis
245 vmmopen(char* file, Void_t* base, size_t round) argument
[all...]
H A Dvmbest.c565 reg size_t size, segsize, round; local
596 if((round = vm->disc->round) == 0)
597 round = _Vmpagesize;
598 if(size > COMPACT*vd->incr && vd->incr > round)
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt/cipher/
H A Dserpent.c529 /* Apply a Serpent round to BLOCK, using the SBOX number WHICH and the
531 This macro increments `round'. */
534 BLOCK_XOR (block, subkeys[round]); \
535 round++; \
541 /* Apply the last Serpent round to BLOCK, using the SBOX number WHICH
544 increments `round'. */
547 BLOCK_XOR (block, subkeys[round]); \
548 round++; \
550 BLOCK_XOR (block_tmp, subkeys[round]); \
551 round
710 int round = 0; local
768 int round = ROUNDS; local
[all...]
H A Ddes.c303 * Numbers of left shifts per round for encryption subkeys.
437 * A full DES round including 'expansion function', 'sbox substitution'
495 int round; local
524 for (round = 0; round < 16; ++round)
526 left = ((left << encrypt_rotate_tab[round])
527 | (left >> (28 - encrypt_rotate_tab[round]))) & 0x0fffffff;
528 right = ((right << encrypt_rotate_tab[round])
529 | (right >> (28 - encrypt_rotate_tab[round])))
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt-grub/cipher/
H A Ddes.c301 * Numbers of left shifts per round for encryption subkeys.
431 * A full DES round including 'expansion function', 'sbox substitution'
489 int round; local
518 for (round = 0; round < 16; ++round)
520 left = ((left << encrypt_rotate_tab[round])
521 | (left >> (28 - encrypt_rotate_tab[round]))) & 0x0fffffff;
522 right = ((right << encrypt_rotate_tab[round])
523 | (right >> (28 - encrypt_rotate_tab[round])))
[all...]
H A Dserpent.c530 /* Apply a Serpent round to BLOCK, using the SBOX number WHICH and the
532 This macro increments `round'. */
535 BLOCK_XOR (block, subkeys[round]); \
536 round++; \
542 /* Apply the last Serpent round to BLOCK, using the SBOX number WHICH
545 increments `round'. */
548 BLOCK_XOR (block, subkeys[round]); \
549 round++; \
551 BLOCK_XOR (block_tmp, subkeys[round]); \
552 round
711 int round = 0; local
769 int round = ROUNDS; local
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dstreval.c58 #define round(x,size) (((x)+(size)-1)&~((size)-1)) macro
59 #define stakpush(v,val,type) ((((v)->offset=round(staktell(),pow2size(sizeof(type)))),\
62 #define roundptr(ep,cp,type) (((unsigned char*)(ep))+round(cp-((unsigned char*)(ep)),pow2size(sizeof(type))))
/osnet-11/usr/src/lib/libast/amd64/include/ast/
H A Dvmalloc.h61 size_t round; /* rounding requirement */ member in struct:_vmdisc_s
/osnet-11/usr/src/lib/libast/common/include/
H A Dvmalloc.h61 size_t round; /* rounding requirement */ member in struct:_vmdisc_s
/osnet-11/usr/src/lib/libast/i386/include/ast/
H A Dvmalloc.h61 size_t round; /* rounding requirement */ member in struct:_vmdisc_s
/osnet-11/usr/src/lib/libast/sparc/include/ast/
H A Dvmalloc.h61 size_t round; /* rounding requirement */ member in struct:_vmdisc_s

Completed in 138 milliseconds

12