Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/bionic/libc/stdio/
Dtempnam.c48 char *f, *name; in tempnam() local
56 if (issetugid() == 0 && (f = getenv("TMPDIR"))) { in tempnam()
57 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam()
58 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam()
59 if ((f = _mktemp(name))) in tempnam()
60 return(f); in tempnam()
63 if ((f = (char *)dir)) { in tempnam()
64 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam()
65 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam()
66 if ((f = _mktemp(name))) in tempnam()
[all …]
Dvasprintf.c29 FILE f; in vasprintf() local
33 _FILEEXT_SETUP(&f, &fext); in vasprintf()
34 f._file = -1; in vasprintf()
35 f._flags = __SWR | __SSTR | __SALC; in vasprintf()
36 f._bf._base = f._p = (unsigned char *)malloc(128); in vasprintf()
37 if (f._bf._base == NULL) in vasprintf()
39 f._bf._size = f._w = 127; /* Leave room for the NUL */ in vasprintf()
40 ret = __vfprintf(&f, fmt, ap); in vasprintf()
43 *f._p = '\0'; in vasprintf()
44 _base = realloc(f._bf._base, ret + 1); in vasprintf()
[all …]
Dvsscanf.c48 FILE f; in vsscanf() local
51 _FILEEXT_SETUP(&f, &fext); in vsscanf()
52 f._flags = __SRD; in vsscanf()
53 f._bf._base = f._p = (unsigned char *)str; in vsscanf()
54 f._bf._size = f._r = strlen(str); in vsscanf()
55 f._read = eofread; in vsscanf()
56 f._lb._base = NULL; in vsscanf()
57 return (vfscanf(&f, fmt, ap)); in vsscanf()
Dvsprintf.c48 FILE f; in vsprintf() local
51 _FILEEXT_SETUP(&f, &fext); in vsprintf()
52 f._file = -1; in vsprintf()
53 f._flags = __SWR | __SSTR; in vsprintf()
54 f._bf._base = f._p = (unsigned char *)str; in vsprintf()
55 f._bf._size = f._w = INT_MAX; in vsprintf()
56 ret = __vfprintf(&f, fmt, ap); in vsprintf()
57 *f._p = '\0'; in vsprintf()
Dasprintf.c31 FILE f; in asprintf() local
34 f._file = -1; in asprintf()
35 f._flags = __SWR | __SSTR | __SALC; in asprintf()
36 f._bf._base = f._p = (unsigned char *)malloc(128); in asprintf()
37 if (f._bf._base == NULL) in asprintf()
39 f._bf._size = f._w = 127; /* Leave room for the NUL */ in asprintf()
41 ret = __vfprintf(&f, fmt, ap); in asprintf()
45 *f._p = '\0'; in asprintf()
46 _base = realloc(f._bf._base, ret + 1); in asprintf()
53 free(f._bf._base); in asprintf()
Dsprintf.c50 FILE f; in sprintf() local
53 _FILEEXT_SETUP(&f, &fext); in sprintf()
54 f._file = -1; in sprintf()
55 f._flags = __SWR | __SSTR; in sprintf()
56 f._bf._base = f._p = (unsigned char *)str; in sprintf()
57 f._bf._size = f._w = INT_MAX; in sprintf()
59 ret = __vfprintf(&f, fmt, ap); in sprintf()
61 *f._p = '\0'; in sprintf()
Dvsnprintf.c44 FILE f; in vsnprintf() local
47 _FILEEXT_SETUP(&f, &fext); in vsnprintf()
57 f._file = -1; in vsnprintf()
58 f._flags = __SWR | __SSTR; in vsnprintf()
59 f._bf._base = f._p = (unsigned char *)str; in vsnprintf()
60 f._bf._size = f._w = n - 1; in vsnprintf()
61 ret = __vfprintf(&f, fmt, ap); in vsnprintf()
62 *f._p = '\0'; in vsnprintf()
Dsscanf.c52 FILE f; in sscanf() local
55 _FILEEXT_SETUP(&f, &fext); in sscanf()
56 f._flags = __SRD; in sscanf()
57 f._bf._base = f._p = (unsigned char *)str; in sscanf()
58 f._bf._size = f._r = strlen(str); in sscanf()
59 f._read = eofread; in sscanf()
60 f._lb._base = NULL; in sscanf()
62 ret = vfscanf(&f, fmt, ap); in sscanf()
Dsnprintf.c46 FILE f; in snprintf() local
57 _FILEEXT_SETUP(&f, &fext); in snprintf()
58 f._file = -1; in snprintf()
59 f._flags = __SWR | __SSTR; in snprintf()
60 f._bf._base = f._p = (unsigned char *)str; in snprintf()
61 f._bf._size = f._w = n - 1; in snprintf()
63 ret = __vfprintf(&f, fmt, ap); in snprintf()
65 *f._p = '\0'; in snprintf()
Dfreopen.c53 int f; in freopen() local
91 f = open(file, oflags, DEFFILEMODE); in freopen()
92 if (f < 0 && isopen) { in freopen()
97 f = open(file, oflags, DEFFILEMODE); in freopen()
107 if (isopen && f != wantfd) in freopen()
125 if (f < 0) { /* did not get it after all */ in freopen()
137 if (wantfd >= 0 && f != wantfd) { in freopen()
138 if (dup2(f, wantfd) >= 0) { in freopen()
139 (void) close(f); in freopen()
140 f = wantfd; in freopen()
[all …]
/bionic/libc/bionic/
Dpututline.c35 FILE* f; in pututline() local
39 if (!(f = fopen(_PATH_UTMP, "w+"))) in pututline()
42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) in pututline()
46 if ((i = ftell(f)) < 0) in pututline()
48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline()
50 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline()
56 fclose(f); in pututline()
58 if (!(f = fopen(_PATH_UTMP, "w+"))) in pututline()
60 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline()
63 fclose(f); in pututline()
/bionic/libm/upstream-freebsd/lib/msun/src/
De_logf.c37 float hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_logf() local
56 f = x-(float)1.0; in __ieee754_logf()
58 if(f==zero) { in __ieee754_logf()
66 R = f*f*((float)0.5-(float)0.33333333333333333*f); in __ieee754_logf()
67 if(k==0) return f-R; else {dk=(float)k; in __ieee754_logf()
68 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_logf()
70 s = f/((float)2.0+f); in __ieee754_logf()
81 hfsq=(float)0.5*f*f; in __ieee754_logf()
82 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_logf()
83 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_logf()
[all …]
De_log.c88 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local
108 f = x-1.0; in __ieee754_log()
110 if(f==zero) { in __ieee754_log()
118 R = f*f*(0.5-0.33333333333333333*f); in __ieee754_log()
119 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log()
120 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_log()
122 s = f/(2.0+f); in __ieee754_log()
133 hfsq=0.5*f*f; in __ieee754_log()
134 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log()
135 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log()
[all …]
Ds_log1pf.c41 float hfsq,f,c,s,z,R,u; in log1pf() local
61 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1pf()
93 f = u-(float)1.0; in log1pf()
95 hfsq=(float)0.5*f*f; in log1pf()
97 if(f==zero) { in log1pf()
105 R = hfsq*((float)1.0-(float)0.66666666666666666*f); in log1pf()
106 if(k==0) return f-R; else in log1pf()
107 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1pf()
109 s = f/((float)2.0+f); in log1pf()
112 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1pf()
[all …]
Ds_log1p.c103 double hfsq,f,c,s,z,R,u; in log1p() local
123 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p()
154 f = u-1.0; in log1p()
156 hfsq=0.5*f*f; in log1p()
158 if(f==zero) { in log1p()
166 R = hfsq*(1.0-0.66666666666666666*f); in log1p()
167 if(k==0) return f-R; else in log1p()
168 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1p()
170 s = f/(2.0+f); in log1p()
173 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1p()
[all …]
De_log2f.c33 float f,hfsq,hi,lo,r,y; in __ieee754_log2f() local
55 f = x - (float)1.0; in __ieee754_log2f()
56 hfsq = (float)0.5*f*f; in __ieee754_log2f()
57 r = k_log1pf(f); in __ieee754_log2f()
74 return (r - hfsq + f) * ((float_t)ivln2lo + ivln2hi) + y; in __ieee754_log2f()
76 hi = f - hfsq; in __ieee754_log2f()
79 lo = (f - hi) - hfsq + r; in __ieee754_log2f()
Dk_logf.h27 k_log1pf(float f) in k_log1pf() argument
31 s = f/((float)2.0+f); in k_log1pf()
37 hfsq=(float)0.5*f*f; in k_log1pf()
De_log10f.c35 float f,hfsq,hi,lo,r,y; in __ieee754_log10f() local
57 f = x - (float)1.0; in __ieee754_log10f()
58 hfsq = (float)0.5*f*f; in __ieee754_log10f()
59 r = k_log1pf(f); in __ieee754_log10f()
63 return (r - hfsq + f) * ((float_t)ivln10lo + ivln10hi) + in __ieee754_log10f()
65 hi = f - hfsq; in __ieee754_log10f()
68 lo = (f - hi) - hfsq + r; in __ieee754_log10f()
Dk_log.h88 k_log1p(double f) in k_log1p() argument
92 s = f/(2.0+f); in k_log1p()
98 hfsq=0.5*f*f; in k_log1p()
De_log2.c41 double f,hfsq,hi,lo,r,val_hi,val_lo,w,y; in __ieee754_log2() local
64 f = x - 1.0; in __ieee754_log2()
65 hfsq = 0.5*f*f; in __ieee754_log2()
66 r = k_log1p(f); in __ieee754_log2()
98 hi = f - hfsq; in __ieee754_log2()
100 lo = (f - hi) - hfsq + r; in __ieee754_log2()
De_log10.c41 double f,hfsq,hi,lo,r,val_hi,val_lo,w,y,y2; in __ieee754_log10() local
64 f = x - 1.0; in __ieee754_log10()
65 hfsq = 0.5*f*f; in __ieee754_log10()
66 r = k_log1p(f); in __ieee754_log10()
69 hi = f - hfsq; in __ieee754_log10()
71 lo = (f - hi) - hfsq + r; in __ieee754_log10()
/bionic/libc/kernel/common/asm-generic/bitops/
Datomic.h25 #define _atomic_spin_lock_irqsave(l,f) do { local_irq_save(f); } while (0) argument
26 #define _atomic_spin_unlock_irqrestore(l,f) do { local_irq_restore(f); } while (0) argument
/bionic/libc/tools/zoneinfo/
DZoneCompactor.java155 RandomAccessFile f = new RandomAccessFile(new File(outputDirectory, "tzdata"), "rw"); in ZoneCompactor() local
156 f.setLength(0); in ZoneCompactor()
166 f.write(toAscii(new byte[12], version)); in ZoneCompactor()
170 int index_offset_offset = (int) f.getFilePointer(); in ZoneCompactor()
171 f.writeInt(0); in ZoneCompactor()
172 int data_offset_offset = (int) f.getFilePointer(); in ZoneCompactor()
173 f.writeInt(0); in ZoneCompactor()
174 int zonetab_offset_offset = (int) f.getFilePointer(); in ZoneCompactor()
175 f.writeInt(0); in ZoneCompactor()
177 int index_offset = (int) f.getFilePointer(); in ZoneCompactor()
[all …]
/bionic/linker/arch/mips/
Dbegin.S37 bal 1f
43 la $t0, 1f
44 bal 1f
59 bne $t2, $t3, 1f /* DT_PLTGOT? */
62 b 2f
64 1: bne $t2, $t4, 1f /* DT_MIPS_LOCAL_GOTNO? */
66 b 2f
82 bgez $t1, 9f
85 b 9f
/bionic/libc/arch-arm/cortex-a15/bionic/
Dmemset.S54 blo 3f
59 beq 2f
68 bge 1f
72 1: bcc 2f
79 blo 2f
90 beq 3f
96 bcc 1f
98 1: bge 2f

12345678910>>...21