Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 135) sorted by relevance

123456

/plan9/sys/lib/lp/process/
H A Dgeneric6 temp=/tmp/lp$pid
7 fn sigexit { rm -f $temp }
12 cat >$temp
14 type=`{file $temp}
23 tcs -s -f utf -t latin1 <$temp | $proc/dpost
25 $proc/tr2post <$temp
32 tcs -s -f utf -t latin1 <$temp | $proc/dpost |
35 $proc/tr2post <$temp | $proc/gspipe
45 $proc/p9bitpost <$temp
47 $proc/p9bitpost <$temp | $proc/gspipe
[all …]
/plan9/sys/src/cmd/unix/u9fs/
H A Dprint.c10 va_list arg, temp; in print() local
14 va_copy(temp, arg); in print()
15 out = doprint(buf, buf+SIZE, fmt, &temp); in print()
16 va_end(temp); in print()
26 va_list arg, temp; in fprint() local
30 va_copy(temp, arg); in fprint()
31 out = doprint(buf, buf+SIZE, fmt, &temp); in fprint()
32 va_end(temp); in fprint()
42 va_list arg, temp; in sprint() local
47 va_copy(temp, arg); in sprint()
[all …]
H A Ddes.c115 long crypto, temp, right, left; in block_cipher() local
127 temp = (right << 1) | ((right >> 31) & 1); in block_cipher()
128 crypto = s0p[(temp & 0x3f) ^ *key++]; in block_cipher()
129 crypto |= s1p[((temp >> 4) & 0x3f) ^ *key++]; in block_cipher()
130 crypto |= s2p[((temp >> 8) & 0x3f) ^ *key++]; in block_cipher()
131 crypto |= s3p[((temp >> 12) & 0x3f) ^ *key++]; in block_cipher()
132 crypto |= s4p[((temp >> 16) & 0x3f) ^ *key++]; in block_cipher()
133 crypto |= s5p[((temp >> 20) & 0x3f) ^ *key++]; in block_cipher()
134 crypto |= s6p[((temp >> 24) & 0x3f) ^ *key++]; in block_cipher()
135 temp = ((right & 1) << 5) | ((right >> 27) & 0x1f); in block_cipher()
[all …]
/plan9/sys/src/cmd/eqn/
H A Dfont.c41 char temp[20]; in globfont() local
43 getstr(temp, sizeof(temp)); in globfont()
45 if (strcmp(temp, "I") == 0 || strncmp(temp, "it", 2) == 0) { in globfont()
47 strcpy(temp, "2"); in globfont()
48 } else if (strcmp(temp, "B") == 0 || strncmp(temp, "bo", 2) == 0) { in globfont()
50 strcpy(temp, "3"); in globfont()
51 } else if (strcmp(temp, "R") == 0 || strncmp(temp, "ro", 2) == 0) { in globfont()
53 strcpy(temp, "1"); in globfont()
58 if (temp[1] == 0) /* 1-char name */ in globfont()
59 strcpy(ftstack[0].name, temp); in globfont()
[all …]
H A Dsize.c44 char temp[20]; in globsize() local
46 getstr(temp, sizeof(temp)); in globsize()
47 if (temp[0] == '+') { in globsize()
48 gsize += atoi(temp+1); in globsize()
51 } else if (temp[0] == '-') { in globsize()
52 gsize -= atoi(temp+1); in globsize()
55 } else if (isdigit(temp[0])) { in globsize()
56 gsize = atoi(temp); in globsize()
60 ERROR "illegal gsize %s ignored", temp WARNING; in globsize()
/plan9/sys/src/cmd/map/
H A Dsqrt.c14 double x, temp; in sqrt() local
35 temp = 0.5 * (1.0+x); in sqrt()
38 temp *= (1L<<30); in sqrt()
42 temp /= (1L<<30); in sqrt()
46 temp *= 1L << (exp/2); in sqrt()
48 temp /= 1L << (-exp/2); in sqrt()
50 temp = 0.5*(temp + arg/temp); in sqrt()
51 return temp; in sqrt()
/plan9/sys/src/libc/port/
H A Dsqrt.c14 double x, temp; in sqrt() local
37 temp = 0.5 * (1.0+x); in sqrt()
40 temp *= (1L<<30); in sqrt()
44 temp /= (1L<<30); in sqrt()
48 temp *= 1L << (exp/2); in sqrt()
50 temp /= 1L << (-exp/2); in sqrt()
52 temp = 0.5*(temp + arg/temp); in sqrt()
53 return temp; in sqrt()
H A Dasin.c14 double temp; in asin() local
24 temp = sqrt(1 - arg*arg); in asin()
26 temp = PIO2 - atan(temp/arg); in asin()
28 temp = atan(arg/temp); in asin()
30 temp = -temp; in asin()
31 return temp; in asin()
H A Dtan.c23 double temp, e, x, xsq; in tan() local
56 temp = ((((p4*xsq+p3)*xsq+p2)*xsq+p1)*xsq+p0)*x; in tan()
57 temp = temp/(((xsq+q2)*xsq+q1)*xsq+q0); in tan()
60 if(temp == 0) in tan()
62 temp = 1/temp; in tan()
65 temp = -temp; in tan()
66 return temp; in tan()
H A Dsinh.c29 double temp, argsq; in sinh() local
38 temp = exp(arg)/2; in sinh()
42 temp = (exp(arg) - exp(-arg))/2; in sinh()
46 temp = (((p3*argsq+p2)*argsq+p1)*argsq+p0)*arg; in sinh()
47 temp /= (((argsq+q2)*argsq+q1)*argsq+q0); in sinh()
50 temp = -temp; in sinh()
51 return temp; in sinh()
H A Dlog.c27 double x, z, zsq, temp; in log() local
45 temp = ((p3*zsq + p2)*zsq + p1)*zsq + p0; in log()
46 temp = temp/(((zsq + q2)*zsq + q1)*zsq + q0); in log()
47 temp = temp*z + exp*log2; in log()
48 return temp; in log()
/plan9/sys/src/ape/lib/ap/plan9/
H A Dsqrt.c16 double x, temp; in sqrt() local
39 temp = 0.5 * (1.0+x); in sqrt()
42 temp *= (1L<<30); in sqrt()
46 temp /= (1L<<30); in sqrt()
50 temp *= 1L << (exp/2); in sqrt()
52 temp /= 1L << (-exp/2); in sqrt()
54 temp = 0.5*(temp + arg/temp); in sqrt()
55 return temp; in sqrt()
/plan9/sys/src/ape/lib/ap/math/
H A Dasin.c16 double temp; in asin() local
28 temp = sqrt(1 - arg*arg); in asin()
30 temp = pio2 - atan(temp/arg); in asin()
32 temp = atan(arg/temp); in asin()
35 temp = -temp; in asin()
36 return temp; in asin()
H A Dsinh.c29 double temp, argsq; in sinh() local
40 temp = HUGE_VAL; in sinh()
42 temp = exp(arg)/2; in sinh()
44 return temp; in sinh()
46 return -temp; in sinh()
53 temp = (((p3*argsq+p2)*argsq+p1)*argsq+p0)*arg; in sinh()
54 temp /= (((argsq+q2)*argsq+q1)*argsq+q0); in sinh()
55 return sign*temp; in sinh()
H A Dtan.c24 double sign, temp, e, x, xsq; in tan() local
57 temp = ((((p4*xsq+p3)*xsq+p2)*xsq+p1)*xsq+p0)*x; in tan()
58 temp = temp/(((xsq+q2)*xsq+q1)*xsq+q0); in tan()
61 if(temp == 0) { in tan()
67 temp = 1/temp; in tan()
69 return sign*temp; in tan()
H A Dlog.c27 double x, z, zsq, temp; in log() local
47 temp = ((p3*zsq + p2)*zsq + p1)*zsq + p0; in log()
48 temp = temp/(((zsq + q2)*zsq + q1)*zsq + q0); in log()
49 temp = temp*z + exp*log2; in log()
50 return temp; in log()
H A Djn.c45 double a, b, temp; in jn() local
64 temp = b; in jn()
66 a = temp; in jn()
79 temp = b; in jn()
81 a = temp; in jn()
91 double a, b, temp; in yn() local
111 temp = b; in yn()
113 a = temp; in yn()
H A Dgamma.c91 double temp; in neg() local
94 temp = sin(pi*arg); in neg()
95 if(temp == 0) { in neg()
99 if(temp < 0) in neg()
100 temp = -temp; in neg()
103 return -log(arg*pos(arg)*temp/pi); in neg()
/plan9/sys/src/cmd/gs/jpeg/
H A Djcphuff.c318 register int temp, nbits; in emit_eobrun() local
321 temp = entropy->EOBRUN; in emit_eobrun()
323 while ((temp >>= 1)) in emit_eobrun()
380 register int temp, temp2; in encode_mcu_DC_first() local
408 temp = temp2 - entropy->last_dc_val[ci]; in encode_mcu_DC_first()
412 temp2 = temp; in encode_mcu_DC_first()
413 if (temp < 0) { in encode_mcu_DC_first()
414 temp = -temp; /* temp is abs value of input */ in encode_mcu_DC_first()
422 while (temp) { in encode_mcu_DC_first()
424 temp >>= 1; in encode_mcu_DC_first()
[all …]
H A Djcdctmgr.c227 { register DCTELEM temp, qval; in forward_DCT() local
233 temp = workspace[i]; in forward_DCT()
251 if (temp < 0) { in forward_DCT()
252 temp = -temp; in forward_DCT()
253 temp += qval>>1; /* for rounding */ in forward_DCT()
254 DIVIDE_BY(temp, qval); in forward_DCT()
255 temp = -temp; in forward_DCT()
257 temp += qval>>1; /* for rounding */ in forward_DCT()
258 DIVIDE_BY(temp, qval); in forward_DCT()
260 output_ptr[i] = (JCOEF) temp; in forward_DCT()
[all …]
H A Djchuff.c356 register int temp, temp2; in encode_one_block() local
362 temp = temp2 = block[0] - last_dc_val; in encode_one_block()
364 if (temp < 0) { in encode_one_block()
365 temp = -temp; /* temp is abs value of input */ in encode_one_block()
373 while (temp) { in encode_one_block()
375 temp >>= 1; in encode_one_block()
398 if ((temp = block[jpeg_natural_order[k]]) == 0) { in encode_one_block()
408 temp2 = temp; in encode_one_block()
409 if (temp < 0) { in encode_one_block()
410 temp = -temp; /* temp is abs value of input */ in encode_one_block()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgdevpcl.c362 int temp, i; in gdev_pcl_mode9compress() local
364 if ((temp = --dissimilar) > MAXCOUNTU) in gdev_pcl_mode9compress()
365 temp = MAXCOUNTU; in gdev_pcl_mode9compress()
367 *out++ = (offset << 3) | (byte) temp; in gdev_pcl_mode9compress()
369 *out++ = (MAXOFFSETU << 3) | (byte) temp; in gdev_pcl_mode9compress()
377 if (temp == MAXCOUNTU) { in gdev_pcl_mode9compress()
378 temp = dissimilar - MAXCOUNTU; in gdev_pcl_mode9compress()
379 while (temp >= 255) { in gdev_pcl_mode9compress()
381 temp -= 255; in gdev_pcl_mode9compress()
383 *out++ = (byte) temp; in gdev_pcl_mode9compress()
[all …]
/plan9/sys/src/cmd/unix/9pfreebsd/mount_9fs/
H A Dcrypt.c175 long crypto, temp, right, left; in block_cipher() local
187 temp = (right << 1) | ((right >> 31) & 1); in block_cipher()
188 crypto = s0p[(temp & 0x3f) ^ *key++]; in block_cipher()
189 crypto |= s1p[((temp >> 4) & 0x3f) ^ *key++]; in block_cipher()
190 crypto |= s2p[((temp >> 8) & 0x3f) ^ *key++]; in block_cipher()
191 crypto |= s3p[((temp >> 12) & 0x3f) ^ *key++]; in block_cipher()
192 crypto |= s4p[((temp >> 16) & 0x3f) ^ *key++]; in block_cipher()
193 crypto |= s5p[((temp >> 20) & 0x3f) ^ *key++]; in block_cipher()
194 crypto |= s6p[((temp >> 24) & 0x3f) ^ *key++]; in block_cipher()
195 temp = ((right & 1) << 5) | ((right >> 27) & 0x1f); in block_cipher()
[all …]
/plan9/sys/src/cmd/lex/
H A Dsub2.c96 int i, *temp; in add() local
99 temp = nxtpos; in add()
102 *temp++ = count; in add()
105 *temp++ = i; in add()
106 nxtpos = temp; in add()
314 uchar *temp, *tz; in nextstate() local
318 temp = tmpstat; in nextstate()
330 temp[*newpos++] = 2; in nextstate()
334 tz = temp + tptr; in nextstate()
335 while(temp < tz){ in nextstate()
[all …]
/plan9/sys/src/cmd/unix/
H A Dnetkey.c269 long crypto, temp, right, left; in block_cipher() local
281 temp = (right << 1) | ((right >> 31) & 1); in block_cipher()
282 crypto = s0p[(temp & 0x3f) ^ *key++]; in block_cipher()
283 crypto |= s1p[((temp >> 4) & 0x3f) ^ *key++]; in block_cipher()
284 crypto |= s2p[((temp >> 8) & 0x3f) ^ *key++]; in block_cipher()
285 crypto |= s3p[((temp >> 12) & 0x3f) ^ *key++]; in block_cipher()
286 crypto |= s4p[((temp >> 16) & 0x3f) ^ *key++]; in block_cipher()
287 crypto |= s5p[((temp >> 20) & 0x3f) ^ *key++]; in block_cipher()
288 crypto |= s6p[((temp >> 24) & 0x3f) ^ *key++]; in block_cipher()
289 temp = ((right & 1) << 5) | ((right >> 27) & 0x1f); in block_cipher()
[all …]

123456