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

12

/illumos-gate/usr/src/lib/libm/i386/src/
H A Dround.s29 .file "round.s"
32 LIBM_ANSI_PRAGMA_WEAK(round,function)
38 ENTRY(round) function
77 / x = n+0.5, recompute round(x) as x+sign(x)*0.5
93 SET_SIZE(round)
/illumos-gate/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...]
/illumos-gate/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) {
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dround.c30 #pragma weak __round = round
35 round(double x) { function
52 /* round x at the integer bit */
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dpack_float.c100 round(pu, roundword) function
109 int increment; /* boolean to indicate round up */
138 msw=pu->significand[0]; /* save msw before round */
151 pu->significand[roundword - 1] &= ~1; /* force round to even */
183 round(pu, 1);
196 round(pu, 1);
249 round(pu, 2);
265 round(pu, 2);
335 round(pu, 2);
343 round(p
[all...]
H A D_Qfpack.c60 round(pu) function
66 int increment; /* boolean to indicate round up */
105 pu->significand[3] &= 0xfffffffe; /* force round to even */
122 round(pu);
172 round(pu);
185 round(pu);
236 round(pu);
252 round(pu);
310 round(pu);
325 round(p
[all...]
H A Ddouble_decim.c37 * for inexact or overflow in *ps. round is the round digit and sticky is 0
43 char round, unsigned sticky)
47 if ((round == '0') && (sticky == 0)) { /* Exact. */
54 if (round < '5')
56 if (round > '5')
60 /* Now in ambiguous case; round up if lsd is odd. */
345 char round = '0'; local
449 round = is[ids++];
451 round
42 decimal_round(decimal_mode *pm, decimal_record *pd, fp_exception_field_type *ps, char round, unsigned sticky) argument
[all...]
/illumos-gate/usr/src/cmd/lgrpinfo/
H A Dlgrpinfo.pl371 sub round subroutine
694 $result = round($number);
/illumos-gate/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;
/illumos-gate/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.c180 char s[4], round; local
198 * Determine the power of ten after which to round and the
270 round = pd->ds[--is];
282 /* round */
283 if (round == '0' && sticky == 0)
290 if (round < '5' || (round == '5' && sticky == 0 &&
309 /* round up */
/illumos-gate/usr/src/cmd/dispadmin/
H A Dsubr.c93 * specified by round.
101 _hrtnewres(hrtimer_t *htp, ulong_t new_res, long round) argument
170 if (round == HRT_RND) {
190 } else if (round == HRT_RNDUP) {
201 } else { /* round == HRT_TRUNC */
232 if (round == HRT_RND) {
235 } else if (round == HRT_RNDUP) {
/illumos-gate/usr/src/lib/libmvec/common/vis/
H A D__vcosf.S62 #define round 0x48 define
145 ! f58 round
175 ldd [%g1+round],%f58
H A D__vsincosf.S62 #define round 0x48 define
146 ! f58 round
181 ldd [%g1+round],%f58
H A D__vsinf.S62 #define round 0x48 define
145 ! f58 round
175 ldd [%g1+round],%f58
H A D__vsin.S74 #define round 0x70 define
1428 ! f42 round
1452 ldd [%l5+round],%f42
/illumos-gate/usr/src/uts/sparc/fpu/
H A Dpack.c65 round( function
69 int increment; /* boolean to indicate round up */
109 pu->significand[3] &= 0xfffffffe; /* force round to even */
127 round(pfpsd, pu);
168 round(pfpsd, pu);
224 round(pfpsd, pu);
246 round(pfpsd, pu);
302 round(pfpsd, pu);
327 round(pfpsd, pu);
395 round(pfps
[all...]
/illumos-gate/usr/src/cmd/lvm/metassist/common/
H A Dvolume_string.c317 boolean_t round)
336 if (round) {
313 bytes_to_sizestr( uint64_t bytes, char **str, units_t units[], boolean_t round) argument
/illumos-gate/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);
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vexp.c348 #define round C[0].d macro
364 y##N = (x##N * invln2_256) + round; \
366 y##N -= round; \
452 y0 = (x0 * invln2_256) + round;
453 y1 = (x1 * invln2_256) + round;
454 y2 = (x2 * invln2_256) + round;
455 y3 = (x3 * invln2_256) + round;
456 y4 = (x4 * invln2_256) + round;
457 y5 = (x5 * invln2_256) + round;
466 y0 -= round;
[all...]

Completed in 3199 milliseconds

12