Searched refs:fr (Results 1 - 22 of 22) sorted by relevance

/ast/src/lib/libast/sfio/
H A Dsfmove.c34 Sfoff_t sfmove(Sfio_t* fr, Sfio_t* fw, Sfoff_t n, reg int rc) argument
36 Sfoff_t sfmove(fr,fw,n,rc)
37 Sfio_t* fr; /* moving data from this stream */
50 SFMTXDECL(fr); /* declare a shadow stream variable for from stream */
53 SFMTXENTER(fr, (Sfoff_t)0);
60 { if(!(cp = (uchar*)sfgetr(fr,rc,0)) )
63 { r = sfvalue(fr);
65 { if(fr->extent >= 0 )
66 (void)SFSEEK(fr,(Sfoff_t)(-r),SEEK_CUR);
81 if(fr
[all...]
H A Dsfhdr.h315 #define SFMBCPY(to,fr) memcpy((to), (fr), sizeof(mbstate_t))
329 #define SFMBCPY(to,fr) memcpy((to), (fr), sizeof(mbstate_t))
343 #define SFMBCPY(to,fr)
360 #define SFMBCPY(to,fr)
1142 #define memcpy(to,fr,n) bcopy((fr),(to),(n))
1152 #define MEMCPY(to,fr,n) \
1154 { default : memcpy((Void_t*)to,(Void_t*)fr,
[all...]
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwvote.c43 #define ENDTARGET(fr) (fr->ntar > CHKTARGET && fr->ntar > 8*fr->star)
72 Freq_t *fr = (Freq_t*)vcw->mtdata; local
77 if((r += size) > fr->srcf->size)
78 r = fr->srcf->size;
82 if(sfseek(fr->srcf->file, l, 0) != l ||
83 !(data = sfreserve(fr->srcf->file, dtsz, 0)) )
86 if((dif = vcwngmatch(&mtch, dfreq, size, data, dtsz, 0, NGRAMMATCH)) < fr
107 Freq_t *fr = (Freq_t*)vcw->mtdata; local
150 Freq_t *fr = (Freq_t*)vcw->mtdata; local
206 Freq_t *fr; local
299 Freq_t *fr; local
[all...]
/ast/src/cmd/tests/sfio/
H A Dtpipe.c39 Sfio_t *fr, *fw; local
51 if(!(fr = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ)) ||
59 if(sfread(fr,buf,10) != 10)
62 SYNC if(sfmove(fr,fw,(Sfoff_t)10,-1) != 10)
68 sfpurge(fr);
69 sfclose(fr);
73 if(!(fr = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ)) ||
76 sfset(fr,SF_SHARE|SF_LINE,1);
84 SYNC if(sfscanf(fr,"%d%d\n%n",&i,&j,&n) != 2 || i != 1 || j != 2 || n != 4)
86 SYNC if(sfscanf(fr,"
[all...]
H A Dtpipemove.c25 Sfio_t *fr, *fw; local
32 if(!(fr = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ)) ||
35 sfset(fr,SF_SHARE,1);
46 if((n = (int)sfmove(fr,sfstdout,(Sfoff_t)100,'\n')) != 100)
H A Dterrno.c27 Sfio_t* fr; local
34 if(!(fr = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r")) )
37 sfseek(fr, (Sfoff_t)0, SEEK_END);
38 if(sfgetc(fr) >= 0 || !sfeof(fr))
42 if((rv = sfwrite(fr, "a", 1)) == 1)
H A Dtmpread.c31 Sfio_t *fr; local
39 if(!(fr = sfnew(0, 0, (size_t)SF_UNBOUND, p[0], SF_READ)) )
56 { if(sfread(fr, rbuf, sizeof(rbuf)) != sizeof(rbuf))
H A Dtpoll.c27 Sfio_t *f, *g, *str, *fr, *fw, *sf[2]; local
46 if(!(fr = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,
53 sf[0] = fr;
58 sf[0] = fr;
63 sf[0] = fr;
66 if((c = sfgetc(fr)) != 'a')
69 sf[0] = fr;
82 if(!(fr = sfnew(fr,NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ)) )
88 if(sfpoll(&fr,
[all...]
H A Dtmwrite.c41 Sfio_t* fr; local
55 fr = sfopen(NIL(Sfio_t*),tstfile("sf", 0),"w+");
83 while((s = sfgetr(fr,'\n',0)) )
87 for(r = sfvalue(fr)-2; r > 0; --r)
91 if(sfvalue(fr) != size[i][count[i]])
93 i, count[i], size[i][count[i]], sfvalue(fr));
H A Dtmprdwr.c115 Sfio_t *fw, *fr; local
127 if(!(fr = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r")) )
137 sfdisc(fr, &disc.disc);
150 { if((rv = sfread(fr, buf, 11)) != 11)
/ast/src/lib/libvcodex/Vchuff/
H A Dvchhdr.h85 #define GRPfreq(fr,oo,ff,kk) \
87 { case 16: fr[*oo] += *ff; oo++; ff++; case 15: fr[*oo] += *ff; oo++; ff++; \
88 case 14: fr[*oo] += *ff; oo++; ff++; case 13: fr[*oo] += *ff; oo++; ff++; \
89 case 12: fr[*oo] += *ff; oo++; ff++; case 11: fr[*oo] += *ff; oo++; ff++; \
90 case 10: fr[*oo] += *ff; oo++; ff++; case 9: fr[*oo] += *ff; oo++; ff++; \
91 case 8: fr[*o
[all...]
H A Dvchuffgroup.c73 #define GRPfreq(fr,oo,kk) \
75 { case 16: fr[oo->obj] += oo->freq; oo++; case 15: fr[oo->obj] += oo->freq; oo++; \
76 case 14: fr[oo->obj] += oo->freq; oo++; case 13: fr[oo->obj] += oo->freq; oo++; \
77 case 12: fr[oo->obj] += oo->freq; oo++; case 11: fr[oo->obj] += oo->freq; oo++; \
78 case 10: fr[oo->obj] += oo->freq; oo++; case 9: fr[oo->obj] += oo->freq; oo++; \
79 case 8: fr[o
239 ssize_t freq[GRP_NTBL][VCH_SIZE], pfr[VCH_SIZE], psz[VCH_SIZE], *fr, *sz; local
[all...]
H A Dvchuffpart.c63 static double eupdate(double e, ssize_t* freq, ssize_t* fr, int add) argument
65 static double eupdate(e, freq, fr, add)
68 ssize_t* fr; /* the one adding/robbing it */
75 { if(fr[b] == 0)
79 freq[b] += fr[b];
80 else freq[b] -= fr[b];
/ast/src/lib/librecsort/
H A Drshdr.h148 #define MEMCPY(to,fr,n) \
150 { default: memcpy(to,fr,n); to += n; fr += n; break; \
151 case 8 : *to++ = *fr++; \
152 case 7 : *to++ = *fr++; \
153 case 6 : *to++ = *fr++; \
154 case 5 : *to++ = *fr++; \
155 case 4 : *to++ = *fr++; \
156 case 3 : *to++ = *fr++; \
157 case 2 : *to++ = *fr
[all...]
H A Drswrite.c67 #define WRITE(rs,to,fr,len,t) { \
68 t = (fr); \
/ast/src/lib/libvdelta/
H A Dvdexpand.c43 reg uchar *tar, *to, *fr; local
108 to = tar+t; fr = tar+copy;
109 MEMCPY(to,fr,n);
H A Dvdupdate.c62 reg uchar *tar, *src, *to, *fr; local
160 fr = src+copy;
163 MEMCPY(to,fr,n);
166 { r = (*target->writef)((Void_t*)fr, n,
222 { to = tar+t; fr = tar+copy; n = (int)s;
223 MEMCPY(to,fr,n);
/ast/src/lib/libvdelta/vd01/
H A Dvdupdate01.c60 reg uchar *tar, *src, *to, *fr; local
158 fr = src+copy;
161 MEMCPY(to,fr,n);
164 { r = (*target->writef)((Void_t*)fr, n,
220 { to = tar+t; fr = tar+copy; n = (int)s;
221 MEMCPY(to,fr,n);
/ast/src/lib/libpp/
H A Dpplib.h428 #define MEMCPY(to,fr,n) \
430 { default : memcpy(to,fr,n); to += n; fr += n; break; \
431 case 7 : *to++ = *fr++; \
432 case 6 : *to++ = *fr++; \
433 case 5 : *to++ = *fr++; \
434 case 4 : *to++ = *fr++; \
435 case 3 : *to++ = *fr++; \
436 case 2 : *to++ = *fr++; \
437 case 1 : *to++ = *fr
[all...]
/ast/src/lib/libast/comp/
H A Diconv.c1054 char fr[64]; local
1071 fc = _ast_iconv_name(f, fr, sizeof(fr));
1074 error(DEBUG_TRACE, "AHA#%d _ast_iconv_open f=%s:%s:%d t=%s:%s:%d\n", __LINE__, f, fr, fc, t, to, tc);
1076 if (fc != CC_ICONV && fc == tc || streq(fr, to))
1084 if ((cc = freelist[i]) && streq(to, cc->to.name) && streq(fr, cc->from.name))
1102 if (!(cc = newof(0, Conv_t, 1, strlen(to) + strlen(fr) + 2)))
1106 strcpy(cc->from.name, fr);
1116 else if ((cc->cvt = iconv_open(t, f)) != (iconv_t)(-1) || (cc->cvt = iconv_open(to, fr)) != (iconv_t)(-1))
1120 else if ((cc->cvt = _win_iconv_open(cc, t, f)) != (_ast_iconv_t)(-1) || (cc->cvt = _win_iconv_open(cc, to, fr)) !
[all...]
/ast/src/cmd/3d/features/
H A Dsyscall.sh1115 void) ft='*' fr= ;;
1116 *) ft= fr='return ' ;;
1122 __libc_*) W=" $r __$l __PARAM__(($d),($va)) $o{$vo $fr$w($a); }" ;;
1123 __*) W=" $r _$l __PARAM__(($d),($va)) $o{$vo $fr$w($a); }" ;;
1125 echo "#define ${l}3d ${ft}_3d_stub${m} = 0; extern __MANGLE__ $r $w __PROTO__(($p)); $r $l __PARAM__(($d),($va)) $o{$vo $fr$w($a); }$W $z" >> $tmp.d
/ast/src/lib/libtk/generic/
H A DtkImgPhoto.c2544 double fr, fg, fb, igam;
2760 fr = (double) colors[r].red / 65535.0;
2762 fr = pow(fr, colorPtr->id.gamma);
2764 colorPtr->colorQuant[0][i] = (int)(fr * 255.99);
2784 fr = (double) colors[r].red / 65535.0;
2788 fr = pow(fr, colorPtr->id.gamma);
2792 colorPtr->colorQuant[0][i] = (int)(fr * 255.99);
2526 double fr, fg, fb, igam; local

Completed in 140 milliseconds