/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | cpowf.c | 55 fcomplex ans; in cpowf() local 76 F_RE(ans) = x; in cpowf() 77 F_IM(ans) = y; in cpowf() 79 F_RE(ans) = one; in cpowf() 80 F_IM(ans) = zero; in cpowf() 82 F_IM(ans) = zero; in cpowf() 90 F_RE(ans) = powf(x, u); in cpowf() 94 F_RE(ans) = F_IM(ans) = x + y + u; in cpowf() 125 return (ans); in cpowf() 132 F_RE(ans) = F_IM(ans) = t - t; in cpowf() [all …]
|
H A D | clog.c | 72 dcomplex ans; in __clog() local 87 D_IM(ans) = carg(z); in __clog() 101 D_RE(ans) = ax; in __clog() 103 D_RE(ans) = ay; in __clog() 105 D_RE(ans) = ax * ay; in __clog() 112 D_RE(ans) = half * log1p(ay * ay); in __clog() 114 D_RE(ans) = log(ax); in __clog() 119 D_RE(ans) = log(ax); in __clog() 121 D_RE(ans) = __k_clog_r(ax, ay, &w); in __clog() 124 D_RE(ans) = log(ax); in __clog() [all …]
|
H A D | cacosh.c | 50 dcomplex w, ans; in cacosh() local 57 D_IM(ans) = y + y; in cacosh() 59 D_RE(ans) = fabs(x); in cacosh() 61 D_RE(ans) = y; in cacosh() 63 D_RE(ans) = -D_IM(w); in cacosh() 64 D_IM(ans) = D_RE(w); in cacosh() 66 D_RE(ans) = D_IM(w); in cacosh() 67 D_IM(ans) = -D_RE(w); in cacosh() 69 return (ans); in cacosh()
|
H A D | cacoshl.c | 49 ldcomplex w, ans; in cacoshl() local 56 LD_IM(ans) = y + y; in cacoshl() 58 LD_RE(ans) = fabsl(x); in cacoshl() 60 LD_RE(ans) = y; in cacoshl() 62 LD_RE(ans) = -LD_IM(w); in cacoshl() 63 LD_IM(ans) = LD_RE(w); in cacoshl() 65 LD_RE(ans) = LD_IM(w); in cacoshl() 66 LD_IM(ans) = -LD_RE(w); in cacoshl() 68 return (ans); in cacoshl()
|
H A D | clogf.c | 40 fcomplex ans; in clogf() local 53 F_IM(ans) = atan2f(y, x); in clogf() 57 F_RE(ans) = ay; in clogf() 59 F_RE(ans) = ax; in clogf() 61 F_RE(ans) = ax + ay; in clogf() 69 F_RE(ans) = (float)(0.5 * log1p(dy * dy)); in clogf() 71 F_RE(ans) = (float)(0.5 * log1p(dx * dx)); in clogf() 73 F_RE(ans) = -1.0f / ax; in clogf() 75 F_RE(ans) = (float)(0.5 * log(dx * dx + dy * dy)); in clogf() 81 return (ans); in clogf()
|
H A D | cpow.c | 153 dcomplex ans; in cpow() local 179 D_RE(ans) = x; in cpow() 180 D_IM(ans) = y; in cpow() 182 D_RE(ans) = one; in cpow() 183 D_IM(ans) = zero; in cpow() 196 D_RE(ans) = D_IM(ans) = x + y + u; in cpow() 238 return (ans); in cpow() 245 D_RE(ans) = D_IM(ans) = t - t; in cpow() 333 D_RE(ans) = c; in cpow() 334 D_IM(ans) = s; in cpow() [all …]
|
H A D | cpowl.c | 108 ldcomplex ans; in cpowl() local 129 LD_RE(ans) = x; in cpowl() 130 LD_IM(ans) = y; in cpowl() 132 LD_RE(ans) = one; in cpowl() 133 LD_IM(ans) = zero; in cpowl() 146 LD_RE(ans) = LD_IM(ans) = x + y + u; in cpowl() 188 return (ans); in cpowl() 195 LD_RE(ans) = LD_IM(ans) = t - t; in cpowl() 276 LD_RE(ans) = c; in cpowl() 277 LD_IM(ans) = s; in cpowl() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | nextafter.c | 38 double ans; in nextafter() local 53 ((int *)&ans)[HIWORD] = k; in nextafter() 54 ((int *)&ans)[LOWORD] = 1; in nextafter() 57 ((int *)&ans)[LOWORD] = lx - 1; in nextafter() 59 ((int *)&ans)[HIWORD] = k; in nextafter() 61 ((int *)&ans)[LOWORD] = lx + 1; in nextafter() 63 ((int *)&ans)[HIWORD] = k; in nextafter() 67 ((int *)&ans)[LOWORD] = lx - 1; in nextafter() 69 ((int *)&ans)[HIWORD] = k; in nextafter() 73 ((int *)&ans)[HIWORD] = k; in nextafter() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.get_mountpoint.ksh | 47 ans, src = zfs.get_prop("$fs", "mountpoint") 48 assert(ans == '/$fs') 53 ans, src = zfs.get_prop("$snap", "mountpoint") 54 assert(ans == nil) 59 ans, src = zfs.get_prop("$clone", "mountpoint") 60 assert(ans == '/$clone') 71 ans, src = zfs.get_prop("$fs", "mountpoint") 72 assert(ans == '$mnt1') 77 ans, src = zfs.get_prop("$snap", "mountpoint") 78 assert(ans == nil) [all …]
|
H A D | tst.get_string_props.zcp | 48 function match(n, prop, ans, src, expected) 52 return ((ans == expected[n][1]) and (src == expected[n][2])) 57 ans, src = zfs.get_prop(fs, prop) 58 if not (match(1, prop, ans, src, expected)) then 59 fs_fails[prop] = {ans, src} 62 ans, src = zfs.get_prop(snap, prop) 63 if not (match(2, prop, ans, src, expected)) then 64 snap_fails[prop] = {ans, src} 67 ans, src = zfs.get_prop(clone, prop) 68 if not (match(3, prop, ans, src, expected)) then [all …]
|
H A D | tst.get_type.ksh | 43 ans, setpoint = zfs.get_prop("$fs", "type") 44 assert(ans == "filesystem") 46 ans, setpoint = zfs.get_prop("$snap", "type") 47 assert(ans == "snapshot") 49 ans, setpoint = zfs.get_prop("$vol", "type") 50 assert(ans == "volume")
|
H A D | tst.get_number_props.zcp | 67 function match(n, ans, src, expected) 68 if ((expected[n][1] == nil) and (ans ~= nil)) then 84 ans, src = zfs.get_prop(fs, prop) 85 if not (match(1, ans, src, expected)) then 86 fs_fails[prop] = {ans, src} 89 ans, src = zfs.get_prop(snap, prop) 90 if not (match(2, ans, src, expected)) then 91 snap_fails[prop] = {ans, src} 94 ans, src = zfs.get_prop(vol, prop) 95 if not (match(3, ans, src, expected)) then [all …]
|
/illumos-gate/usr/src/common/util/ |
H A D | getresponse.c | 133 char ans[LINE_MAX + 1]; in yes_no() local 142 ans[i] = b; in yes_no() 146 ans[LINE_MAX] = '\0'; in yes_no() 148 ans[i] = '\0'; in yes_no() 150 return (func(ans)); in yes_no() 156 if (regexec(reg1, ans, 0, NULL, 0) == 0) { in yes_no_check() 157 if (regexec(reg2, ans, 0, NULL, 0) == 0) { in yes_no_check() 172 yes_check(char *ans) in yes_check() argument 174 return (yes_no_check(ans, &preg_yes, &preg_no)); in yes_check() 182 no_check(char *ans) in no_check() argument [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vatan.c | 91 ans = f - f; /* return NaN if x=NaN*/ in __vatan() 97 ans = f; in __vatan() 104 *y = (sign) ? -ans: ans; /* store answer, with sign bit */ in __vatan() 155 ans = f1 - f1; /* return NaN if x=NaN*/ in __vatan() 161 ans = f1; in __vatan() 168 *y = (sign1) ? -ans: ans; /* store answer, with sign bit */ in __vatan() 224 ans = f2 - f2; /* return NaN if x=NaN*/ in __vatan() 230 ans = f2; in __vatan() 237 *y = (sign2) ? -ans: ans; /* store answer, with sign bit */ in __vatan() 301 ans = ansu + ansl ; in __vatan() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | summarize_errs.sh | 29 read ans 30 if echo $ans | grep ^$ > /dev/null ; then 36 echo $ans >> summary 82 ans="?" 83 while echo $ans | grep '?' > /dev/null ; do 85 read ans 86 if echo $ans | grep n > /dev/null ; then 89 if echo $ans | grep f > /dev/null ; then 93 if echo $ans | grep '?' > /dev/null ; then
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | check.c | 204 char ans[MAX_INPUT]; in ckpartial() local 238 if (strchr("yY", *ans) == NULL) { in ckpartial() 272 if (strchr("yY", *ans) == NULL) { in ckpartial() 384 if (strchr("yY", *ans) != NULL) { in ckrunlevel() 408 char ans[MAX_INPUT]; in ckdepend() local 451 if (strchr("yY", *ans) == NULL) { in ckdepend() 486 char ans[MAX_INPUT]; in ckspace() local 531 if (strchr("yY", *ans) == NULL) { in ckspace() 673 char ans[MAX_INPUT]; in ckconflct() local 794 if (strchr("yY", *ans) == NULL) { in ckconflct() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/regex/ |
H A D | testregex.c | 875 if (ans) in matchprint() 1244 char* ans; in main() local 1572 if ((ans = setlocale(LC_COLLATE, s)) && streq(ans, "POSIX")) in main() 1573 ans = "C"; in main() 1574 if (!ans || !streq(ans, s) && streq(s, "C")) in main() 1575 ans = 0; in main() 1577 ans = "C"; in main() 1578 if (!ans || !streq(ans, s) && streq(s, "C")) in main() 2046 …if (!(test & (TEST_DECOMP|TEST_SUB)) && *ans && *ans != '(' && !streq(ans, "OK") && !streq(ans, "N… in main() 2063 else if (!*ans || ans[0]=='(' || cret == REG_BADPAT && streq(ans, "NOMATCH")) in main() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ldivide.c | 39 dl_t ans; in ldivide() local 48 ans = lzero; in ldivide() 57 ans = lshiftl(ans, 1); in ldivide() 59 ans.dl_lop |= 1; in ldivide() 64 return (ans); in ldivide()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | check.c | 76 char ans[MAX_INPUT]; in rckrunlevel() local 141 n = ckyorn(ans, NULL, NULL, HLP_PKGREMOVE_RUNLEVEL, in rckrunlevel() 148 if (strchr("yY", *ans) == NULL) { in rckrunlevel() 159 char ans[MAX_INPUT]; in rckdepend() local 188 n = ckyorn(ans, NULL, NULL, HLP_PKGREMOVE_DEPEND, in rckdepend() 195 if (strchr("yY", *ans) == NULL) { in rckdepend() 210 char ans[MAX_INPUT]; in rckpriv() local 248 n = ckyorn(ans, NULL, NULL, HLP_PKGREMOVE_PRIV, in rckpriv() 255 if (strchr("yY", *ans) == NULL) { in rckpriv()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 57 struct arphdr *req, *ans; in doifrevarp() local 128 ((ans = malloc(ifrarplen)) == NULL)) { in doifrevarp() 160 retval = rarp_recv(dh, ans, ifrarplen, physaddrlen, in doifrevarp() 171 (void) memcpy(&answer, (uchar_t *)ans + in doifrevarp() 190 free(ans); in doifrevarp() 289 else if (ans->ar_hrd != htons(ARPHRD_ETHER)) in rarp_recv() 291 else if (ans->ar_pro != htons(ETHERTYPE_IP)) in rarp_recv() 293 else if (ans->ar_hln != physaddrlen) in rarp_recv() 295 else if (ans->ar_pln != IPADDRL) in rarp_recv() 302 switch (ntohs(ans->ar_op)) { in rarp_recv() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | lmul.c | 37 dl_t ans; in lmul() local 41 ans = lzero; in lmul() 48 ans = ladd(ans, tmp); in lmul() 51 return (ans); in lmul()
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_da_cache.c | 101 cache_entry_t ce[1], **ans; in slp_find_das_cached() local 114 ans = slp_tfind(ce, &da_cache, compare_entries); in slp_find_das_cached() 115 if (ans) { in slp_find_das_cached() 117 if ((*ans)->expires < now || (*ans)->max_life < now) { in slp_find_das_cached() 122 if (!(reply = malloc((*ans)->reply_len))) { in slp_find_das_cached() 127 (void) memcpy(reply, (*ans)->reply, (*ans)->reply_len); in slp_find_das_cached() 128 (*ans)->expires += ADVANCE_PER_USE; in slp_find_das_cached()
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | pmap_svc.c | 170 int ans; in pmapproc_change() local 182 ans = FALSE; in pmapproc_change() 190 ans = FALSE; in pmapproc_change() 207 ans = FALSE; in pmapproc_change() 210 ans = map_set(&rpcbreg, rpcbreg.r_owner); in pmapproc_change() 219 ans = ans1 || ans2; in pmapproc_change() 221 ans = FALSE; in pmapproc_change() 224 PMAP_LOG(ans, xprt, op, reg.pm_prog); in pmapproc_change() 226 if ((!svc_sendreply(xprt, (xdrproc_t)xdr_long, (caddr_t)&ans)) && in pmapproc_change() 234 rpcbs_set(RPCBVERS_2_STAT, ans); in pmapproc_change() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 224 ans = ret; in shim_changepasswd() 266 int ans = 2; in proc_domain() local 282 return (ans); in proc_domain() 289 return (ans); in proc_domain() 309 int ans; in proc_request() local 321 if (0 != ans) in proc_request() 322 return (ans); in proc_request() 368 return (ans); in proc_request() 385 int ans = 0; in proc_maps() local 415 return (ans); in proc_maps() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 174 ans = 2; in changepasswd() 198 ans = 8; in changepasswd() 239 ans = 8; in changepasswd() 243 ans = 9; in changepasswd() 410 ans = 4; in changepasswd() 416 ans = 4; in changepasswd() 439 ans = 3; in changepasswd() 468 ans = 3; in changepasswd() 482 ans = 7; in changepasswd() 510 ans = 7; in changepasswd() [all …]
|