/bionic/libc/private/ |
D | bionic_asm.h | 35 #define __bionic_asm_custom_entry(f) argument 36 #define __bionic_asm_custom_end(f) argument 41 #define ENTRY(f) \ argument 43 .globl f; \ 45 .type f, __bionic_asm_function_type; \ 46 f: \ 47 __bionic_asm_custom_entry(f); \ 50 #define END(f) \ argument 52 .size f, .-f; \ 53 __bionic_asm_custom_end(f) \ [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | tempnam.c | 48 char *f, *name; in tempnam() local 56 if (issetugid() == 0 && (f = getenv("TMPDIR")) && *f != '\0') { in tempnam() 57 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f, in tempnam() 58 f[strlen(f) - 1] == '/' ? "" : "/", pfx); in tempnam() 63 if ((f = _mktemp(name))) in tempnam() 64 return(f); in tempnam() 68 f = *dir ? (char *)dir : "."; in tempnam() 69 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f, in tempnam() 70 f[strlen(f) - 1] == '/' ? "" : "/", pfx); in tempnam() 75 if ((f = _mktemp(name))) in tempnam() [all …]
|
D | vasprintf.c | 29 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 …]
|
D | asprintf.c | 32 FILE f; in asprintf() local 36 _FILEEXT_SETUP(&f, &fext); in asprintf() 37 f._file = -1; in asprintf() 38 f._flags = __SWR | __SSTR | __SALC; in asprintf() 39 f._bf._base = f._p = (unsigned char *)malloc(128); in asprintf() 40 if (f._bf._base == NULL) in asprintf() 42 f._bf._size = f._w = 127; /* Leave room for the NUL */ in asprintf() 44 ret = __vfprintf(&f, fmt, ap); in asprintf() 48 *f._p = '\0'; in asprintf() 49 _base = realloc(f._bf._base, ret + 1); in asprintf() [all …]
|
D | vsprintf.c | 48 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()
|
D | vsscanf.c | 49 FILE f; in vsscanf() local 52 _FILEEXT_SETUP(&f, &fext); in vsscanf() 53 f._flags = __SRD; in vsscanf() 54 f._bf._base = f._p = (unsigned char *)str; in vsscanf() 55 f._bf._size = f._r = strlen(str); in vsscanf() 56 f._read = eofread; in vsscanf() 57 f._lb._base = NULL; in vsscanf() 58 return (__svfscanf(&f, fmt, ap)); in vsscanf()
|
D | vdprintf.c | 53 FILE f; in vdprintf() local 58 _FILEEXT_SETUP(&f, &fext); in vdprintf() 60 f._p = buf; in vdprintf() 61 f._w = sizeof(buf); in vdprintf() 62 f._flags = __SWR; in vdprintf() 63 f._file = -1; in vdprintf() 64 f._bf._base = buf; in vdprintf() 65 f._bf._size = sizeof(buf); in vdprintf() 66 f._cookie = &fd; in vdprintf() 67 f._write = __dwrite; in vdprintf() [all …]
|
D | sscanf.c | 53 FILE f; in sscanf() local 56 _FILEEXT_SETUP(&f, &fext); in sscanf() 57 f._flags = __SRD; in sscanf() 58 f._bf._base = f._p = (unsigned char *)str; in sscanf() 59 f._bf._size = f._r = strlen(str); in sscanf() 60 f._read = eofread; in sscanf() 61 f._lb._base = NULL; in sscanf() 63 ret = __svfscanf(&f, fmt, ap); in sscanf()
|
D | vsnprintf.c | 44 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()
|
D | vswprintf.c | 44 FILE f; in vswprintf() local 55 _FILEEXT_SETUP(&f, &fext); in vswprintf() 56 f._file = -1; in vswprintf() 57 f._flags = __SWR | __SSTR | __SALC; in vswprintf() 58 f._bf._base = f._p = (unsigned char *)malloc(128); in vswprintf() 59 if (f._bf._base == NULL) { in vswprintf() 63 f._bf._size = f._w = 127; /* Leave room for the NUL */ in vswprintf() 64 ret = __vfwprintf(&f, fmt, ap); in vswprintf() 67 free(f._bf._base); in vswprintf() 73 free(f._bf._base); in vswprintf() [all …]
|
D | vswscanf.c | 56 FILE f; in vswscanf() local 78 _FILEEXT_SETUP(&f, &fext); in vswscanf() 79 f._flags = __SRD; in vswscanf() 80 f._bf._base = f._p = (unsigned char *)mbstr; in vswscanf() 81 f._bf._size = f._r = mlen; in vswscanf() 82 f._read = eofread; in vswscanf() 83 f._lb._base = NULL; in vswscanf() 84 r = __vfwscanf(&f, fmt, ap); in vswscanf()
|
D | freopen.c | 52 int f; in freopen() local 90 f = open(file, oflags, DEFFILEMODE); in freopen() 91 if (f < 0 && isopen) { in freopen() 96 f = open(file, oflags, DEFFILEMODE); in freopen() 106 if (isopen && f != wantfd) in freopen() 124 if (f < 0) { /* did not get it after all */ in freopen() 136 if (wantfd >= 0 && f != wantfd) { in freopen() 137 if (dup2(f, wantfd) >= 0) { in freopen() 138 (void) close(f); in freopen() 139 f = wantfd; in freopen() [all …]
|
/bionic/libc/stdio/ |
D | sprintf.c | 51 FILE f; in sprintf() local 54 _FILEEXT_SETUP(&f, &fext); in sprintf() 55 f._file = -1; in sprintf() 56 f._flags = __SWR | __SSTR; in sprintf() 57 f._bf._base = f._p = (unsigned char *)str; in sprintf() 58 f._bf._size = f._w = INT_MAX; in sprintf() 60 ret = __vfprintf(&f, fmt, ap); in sprintf() 62 *f._p = '\0'; in sprintf()
|
D | snprintf.c | 47 FILE f; in snprintf() local 58 _FILEEXT_SETUP(&f, &fext); in snprintf() 59 f._file = -1; in snprintf() 60 f._flags = __SWR | __SSTR; in snprintf() 61 f._bf._base = f._p = (unsigned char *)str; in snprintf() 62 f._bf._size = f._w = n - 1; in snprintf() 64 ret = __vfprintf(&f, fmt, ap); in snprintf() 66 *f._p = '\0'; in snprintf()
|
/bionic/libc/bionic/ |
D | pututline.c | 35 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/ |
D | e_logf.c | 38 float hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_logf() local 57 f = x-(float)1.0; in __ieee754_logf() 59 if(f==zero) { in __ieee754_logf() 67 R = f*f*((float)0.5-(float)0.33333333333333333*f); in __ieee754_logf() 68 if(k==0) return f-R; else {dk=(float)k; in __ieee754_logf() 69 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_logf() 71 s = f/((float)2.0+f); in __ieee754_logf() 82 hfsq=(float)0.5*f*f; in __ieee754_logf() 83 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_logf() 84 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_logf() [all …]
|
D | e_log.c | 91 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local 111 f = x-1.0; in __ieee754_log() 113 if(f==zero) { in __ieee754_log() 121 R = f*f*(0.5-0.33333333333333333*f); in __ieee754_log() 122 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log() 123 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_log() 125 s = f/(2.0+f); in __ieee754_log() 136 hfsq=0.5*f*f; in __ieee754_log() 137 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log() 138 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log() [all …]
|
D | s_log1pf.c | 42 float hfsq,f,c,s,z,R,u; in log1pf() local 62 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1pf() 94 f = u-(float)1.0; in log1pf() 96 hfsq=(float)0.5*f*f; in log1pf() 98 if(f==zero) { in log1pf() 106 R = hfsq*((float)1.0-(float)0.66666666666666666*f); in log1pf() 107 if(k==0) return f-R; else in log1pf() 108 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1pf() 110 s = f/((float)2.0+f); in log1pf() 113 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1pf() [all …]
|
D | s_log1p.c | 104 double hfsq,f,c,s,z,R,u; in log1p() local 124 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p() 155 f = u-1.0; in log1p() 157 hfsq=0.5*f*f; in log1p() 159 if(f==zero) { in log1p() 167 R = hfsq*(1.0-0.66666666666666666*f); in log1p() 168 if(k==0) return f-R; else in log1p() 169 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1p() 171 s = f/(2.0+f); in log1p() 174 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1p() [all …]
|
D | e_log2f.c | 34 float f,hfsq,hi,lo,r,y; in __ieee754_log2f() local 56 f = x - (float)1.0; in __ieee754_log2f() 57 hfsq = (float)0.5*f*f; in __ieee754_log2f() 58 r = k_log1pf(f); in __ieee754_log2f() 75 return (r - hfsq + f) * ((float_t)ivln2lo + ivln2hi) + y; in __ieee754_log2f() 77 hi = f - hfsq; in __ieee754_log2f() 80 lo = (f - hi) - hfsq + r; in __ieee754_log2f()
|
D | k_logf.h | 27 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()
|
D | e_log10f.c | 36 float f,hfsq,hi,lo,r,y; in __ieee754_log10f() local 58 f = x - (float)1.0; in __ieee754_log10f() 59 hfsq = (float)0.5*f*f; in __ieee754_log10f() 60 r = k_log1pf(f); in __ieee754_log10f() 64 return (r - hfsq + f) * ((float_t)ivln10lo + ivln10hi) + in __ieee754_log10f() 66 hi = f - hfsq; in __ieee754_log10f() 69 lo = (f - hi) - hfsq + r; in __ieee754_log10f()
|
D | k_log.h | 88 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()
|
/bionic/libc/tools/zoneinfo/ |
D | ZoneCompactor.java | 100 RandomAccessFile f = new RandomAccessFile(new File(outputDirectory, "tzdata"), "rw"); in ZoneCompactor() local 101 f.setLength(0); in ZoneCompactor() 111 f.write(toAscii(new byte[12], version)); in ZoneCompactor() 115 int index_offset_offset = (int) f.getFilePointer(); in ZoneCompactor() 116 f.writeInt(0); in ZoneCompactor() 117 int data_offset_offset = (int) f.getFilePointer(); in ZoneCompactor() 118 f.writeInt(0); in ZoneCompactor() 119 int zonetab_offset_offset = (int) f.getFilePointer(); in ZoneCompactor() 120 f.writeInt(0); in ZoneCompactor() 122 int index_offset = (int) f.getFilePointer(); in ZoneCompactor() [all …]
|
/bionic/linker/arch/mips/ |
D | begin.S | 39 bal 1f 45 la $t0, 1f 46 bal 1f 61 bne $t2, $t3, 1f /* DT_PLTGOT? */ 64 b 2f 66 1: bne $t2, $t4, 1f /* DT_MIPS_LOCAL_GOTNO? */ 68 b 2f 84 bgez $t1, 9f 87 b 9f
|