Searched refs:scale (Results 1 - 25 of 33) sorted by relevance

12

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dbigfloat.pl25 # Also used for default sqrt scale
131 # args are dividend, divisor, scale (optional)
132 # result has at most max(scale, length(dividend), length(divisor)) digits
133 sub main'fdiv #(fnum_str, fnum_str[,scale]) return fnum_str
135 local($x,$y,$scale) = (&'fnorm($_[$[]),&'fnorm($_[$[+1]),$_[$[+2]);
141 $scale = $div_scale if (!$scale);
142 $scale = length($xm)-1 if (length($xm)-1 > $scale);
143 $scale
[all...]
H A Dbigrat.pl142 local($x, $scale) = (&'rnorm($_[$[]), $_[$[+1]);
149 $scale = 5 if (!$scale);
150 while ($gscale++ < $scale) {
/osnet-11/usr/src/lib/libplot/t4014/common/
H A Dscale.c37 scale(char i, float x, float y) function
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/
H A Dbigroot.t62 my ($x,$n,$y,$scale,$result) = @_;
64 my $s = $scale || 'undef';
66 ok ($cl->new($x)->bpow($n)->broot($y,$scale),$result);
69 ok ($c->new($x)->bpow($n)->broot($y,$scale),$result);
H A Dbigintpm.t18 use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup $CL);
H A Dupgrade.t36 use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
H A Dbiglog.t133 my ($x,$y,$scale,$result) = @_;
135 print "# Tried: $x->bpow($y,$scale);\n"
136 unless ok ($cl->new($x)->bpow($y,$scale),$result);
H A Ddowngrade.t19 use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
H A Dupgradef.t66 use vars qw ($scale $class $try $x $y $z $f @args $ans $ans1 $ans1_str $setup
/osnet-11/usr/src/lib/libast/common/string/
H A Dfmtscale.c46 static const char scale[] = "bkMGTPE"; local
48 u = scale;
74 if (u > scale)
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dutils.h46 int utils_parse_size(const char *value, s64 *size, BOOL scale);
47 int utils_parse_range(const char *string, s64 *start, s64 *finish, BOOL scale);
H A Dutils.c255 * @scale: Whether or not to allow a suffix to scale the value
257 * Read a string and convert it to a number. Strings may be suffixed to scale
274 int utils_parse_size(const char *value, s64 *size, BOOL scale) argument
297 if (scale) {
334 int utils_parse_range(const char *string, s64 *start, s64 *finish, BOOL scale) argument
349 if (!utils_parse_size(string, &a, scale))
358 if (!utils_parse_size(middle+1, &b, scale))
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgstr.c846 * readable format i.e. in the range 0 thru scale-1.
850 * scale - [RO, *RO] - (unsigned long long)
851 * Value to scale the number into
860 pkgstrScaleNumericString(char *a_buf, unsigned long long scale) argument
871 assert(scale > (unsigned long long)0);
872 assert(scale <= (unsigned long long)1048576);
899 * Now have number as a count of scale units.
904 while ((number >= scale) && (*uom != 'E')) {
907 number = (number + (scale / 2)) / scale;
[all...]
/osnet-11/usr/src/lib/libsum/common/
H A Dsumlib.c54 int scale; member in struct:Method_s
118 long_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
130 if ((flags & SUM_SCALE) && ((n = scale) || (n = x->method->scale)))
331 sumprint(Sum_t* p, Sfio_t* sp, int flags, size_t scale) argument
333 return (*p->method->print)(p, sp, flags, scale);
H A Dsum-ast4.c100 ast4_print(Sum_t* p, Sfio_t* sp, int flags, size_t scale) argument
H A Dsum-lmd.c80 lmd_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DBigFloat.pm736 my ($scale,@params);
749 $scale = $params[0]+4; # at least four more for proper round
757 $scale = abs($params[0] || $params[1]) + 4; # take whatever is defined
820 $self->_log_10($x,$scale);
827 $x->bdiv( $base->copy()->blog(undef,$scale), $scale );
855 my ($self,$x,$scale) = @_;
879 $x->bdiv($v,$scale); # first term: u/v
888 $limit = $self->new("1E-". ($scale-1));
898 # digits, but in the end it is rounded to $scale digit
[all...]
H A DBigInt.pm418 # used by bround() and bfround(), may return undef for scale (means no op)
419 my ($x,$s,$m,$scale,$mode) = @_;
420 $scale = $x->{_a} if !defined $scale;
421 $scale = $s if (!defined $scale);
423 return ($scale,$mode);
429 # used by bround() and bfround(), may return undef for scale (means no op)
430 my ($x,$s,$m,$scale,$mode) = @_;
431 $scale
[all...]
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfhdr.h1075 #define SFDIGIT(v,scale,digit) \
1076 { if(v < 5*scale) \
1077 if(v < 2*scale) \
1078 if(v < 1*scale) \
1080 else { digit = '1'; v -= 1*scale; } \
1081 else if(v < 3*scale) \
1082 { digit = '2'; v -= 2*scale; } \
1083 else if(v < 4*scale) \
1084 { digit = '3'; v -= 3*scale; } \
1085 else { digit = '4'; v -= 4*scale; } \
[all...]
H A Dsfvprintf.c109 int scale; local
226 scale = 0;
686 if(scale)
925 scale = 1024;
937 scale = 1000;
963 if(scale)
964 { sp = fmtscale(lv, scale);
1023 if(scale)
1024 { sp = fmtscale(v, scale);
/osnet-11/usr/src/lib/libeti/menu/
H A DMakefile.com56 scale.o \
/osnet-11/usr/src/lib/libc/port/gen/
H A Dmon.c196 uint_t scale; local
333 * scale is a 16 bit fixed point fraction with the decimal
339 scale = (uint_t)((temp * (long)0200000L) / text);
341 /* scale must be less than 1 */
342 scale = 0xffff;
345 profil(buffer, bufsize, (ulong_t)lowpc, scale);
/osnet-11/usr/src/lib/libcmd/common/
H A Dcksum.c53 "[B:scale?Block count scale (bytes per block) override for methods that"
54 " include size in the output. The default is method specific.]#[scale]"
100 "[r:bsd?Equivalent to \b--method=bsd --scale=512\b for compatibility with"
131 size_t scale; /* scale override */ member in struct:State_s
233 sumprint(state->sum, op, state->flags|SUM_SCALE, state->scale);
473 state.scale = opt_info.num;
490 state.scale = 512;
627 sumprint(state.sum, sfstdout, state.flags|SUM_TOTAL|SUM_SCALE, state.scale);
[all...]
H A Dls.c125 "[h:scale|binary-scale|human-readable?Scale sizes to powers of 1024 { Ki Mi Gi Ti Pi Xi }.]"
205 "[102:decimal-scale|thousands?Scale sizes to powers of 1000 { K M G T P X }.]"
339 int scale; /* metric scale power */ member in struct:__anon1493
548 if (!state.scale)
558 if (state.scale)
560 s = fmtscale(n, state.scale);
699 if (state.scale)
701 s = fmtscale(n, state.scale);
[all...]
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Project/
H A DProject.pm700 my $scale;
744 $scale = 'bytes';
747 projent_val2num($ref->[0], $scale);
1576 my $scale;
1600 $scale = \%scaleB;
1603 $scale = \%scaleM;
1605 $scale = \%scaleM;
1623 $mul = $scale->{$modifier};

Completed in 149 milliseconds

12