/picolibc-3.7.0-3.6.0/test/ |
D | test-fopen.c | 46 if (f) \ 47 fclose(f); \ 58 FILE *f; in check_contents() local 63 f = fopen(TEST_FILE_NAME, "r"); in check_contents() 64 check(f != NULL, "fopen r"); in check_contents() 67 c = getc(f); in check_contents() 71 c = getc(f); in check_contents() 73 r = fclose(f); in check_contents() 74 f = NULL; in check_contents() 81 FILE *f; in main() local [all …]
|
D | test-mktemp.c | 43 if (f) \ 44 fclose(f); \ 61 FILE *f; in check_contents() local 66 f = fopen(template, "r"); in check_contents() 67 check(f != NULL, "fopen r"); in check_contents() 70 c = getc(f); in check_contents() 74 c = getc(f); in check_contents() 76 r = fclose(f); in check_contents() 77 f = NULL; in check_contents() 91 FILE *f = NULL; in main() local [all …]
|
D | long_double_gen.5c | 7 real(real a) f; 12 real(real a, real b) f; 17 real(real a, real b, real c) f; 22 real(real a, int b) f; 27 int(real a) f; 100 string vec = sprintf("%s_vec", f.name); 102 if (is_full_func(f.name)) 104 string prec_name = make_prec(f.name); 111 y = imprecise(f.f(imprecise(x, prec)), out_prec); 115 raise invalid_argument(f.name, 0, x); [all …]
|
D | posix-io.c | 50 test_cmp(FILE *f, const char *t) in test_cmp() argument 53 while ((c = getc(f)) != EOF) { in test_cmp() 65 FILE *f; in main() local 68 f = fopen(file_name, "w+"); in main() 69 if (!f) { in main() 74 if ((size_t) fprintf(f, "%s", test_string) != strlen(test_string)) { in main() 80 if (fseeko(f, -3, SEEK_CUR) < 0) { in main() 84 if (test_cmp(f, test_string + sizeof(test_string) - 4)) in main() 87 if (fseek(f, 2, SEEK_SET)) { in main() 91 if (test_cmp(f, test_string + 2)) in main() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | stdio-bufio.h | 85 static inline void __bufio_lock_init(FILE *f) { in __bufio_lock_init() argument 86 (void) f; in __bufio_lock_init() 87 __lock_init(((struct __file_bufio *) f)->lock); in __bufio_lock_init() 90 static inline void __bufio_lock_close(FILE *f) { in __bufio_lock_close() argument 91 (void) f; in __bufio_lock_close() 92 __lock_release(((struct __file_bufio *) f)->lock); in __bufio_lock_close() 93 __lock_close(((struct __file_bufio *) f)->lock); in __bufio_lock_close() 96 static inline void __bufio_lock(FILE *f) { in __bufio_lock() argument 97 (void) f; in __bufio_lock() 98 __lock_acquire(((struct __file_bufio *) f)->lock); in __bufio_lock() [all …]
|
D | bufio.c | 41 __bufio_flush_locked(FILE *f) in __bufio_flush_locked() argument 43 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_flush_locked() 80 int __bufio_fill_locked(FILE *f) in __bufio_fill_locked() argument 82 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_fill_locked() 104 __bufio_flush(FILE *f) in __bufio_flush() argument 108 __bufio_lock(f); in __bufio_flush() 109 ret = __bufio_flush_locked(f); in __bufio_flush() 110 __bufio_unlock(f); in __bufio_flush() 116 __bufio_setdir_locked(FILE *f, uint8_t dir) in __bufio_setdir_locked() argument 118 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_setdir_locked() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/ |
D | swscanf.c | 420 FILE f; in swscanf() local 422 f._flags = __SRD | __SSTR; in swscanf() 423 f._flags2 = 0; in swscanf() 424 f._bf._base = f._p = (unsigned char *) str; in swscanf() 425 f._bf._size = f._r = wcslen (str) * sizeof (wchar_t); in swscanf() 426 f._read = __seofread; in swscanf() 427 f._ub._base = NULL; in swscanf() 428 f._lb._base = NULL; in swscanf() 429 f._flags2 = 0; in swscanf() 430 f._ur = 0; in swscanf() [all …]
|
D | vswscanf.c | 37 FILE f; in vswscanf() local 39 f._flags = __SRD | __SSTR; in vswscanf() 40 f._bf._base = f._p = (unsigned char *) str; in vswscanf() 41 f._bf._size = f._r = wcslen (str) * sizeof (wchar_t); in vswscanf() 42 f._read = __seofread; in vswscanf() 43 f._ub._base = NULL; in vswscanf() 44 f._lb._base = NULL; in vswscanf() 45 f._flags2 = 0; in vswscanf() 46 f._ur = 0; in vswscanf() 47 f._file = -1; /* No file. */ in vswscanf() [all …]
|
D | vsiscanf.c | 36 FILE f; in vsiscanf() local 38 f._flags = __SRD | __SSTR; in vsiscanf() 39 f._flags2 = 0; in vsiscanf() 40 f._bf._base = f._p = (unsigned char *) str; in vsiscanf() 41 f._bf._size = f._r = strlen (str); in vsiscanf() 42 f._read = __seofread; in vsiscanf() 43 f._ub._base = NULL; in vsiscanf() 44 f._lb._base = NULL; in vsiscanf() 45 f._file = -1; /* No file. */ in vsiscanf() 46 return _ssvfiscanf ( &f, fmt, ap); in vsiscanf()
|
D | siscanf.c | 88 FILE f; in siscanf() local 90 f._flags = __SRD | __SSTR; in siscanf() 91 f._flags2 = 0; in siscanf() 92 f._bf._base = f._p = (unsigned char *) str; in siscanf() 93 f._bf._size = f._r = strlen (str); in siscanf() 94 f._read = __seofread; in siscanf() 95 f._ub._base = NULL; in siscanf() 96 f._lb._base = NULL; in siscanf() 97 f._file = -1; /* No file. */ in siscanf() 99 ret = _ssvfiscanf ( &f, fmt, ap); in siscanf()
|
D | vsscanf.c | 37 FILE f; in vsscanf() local 39 f._flags = __SRD | __SSTR; in vsscanf() 40 f._flags2 = 0; in vsscanf() 41 f._bf._base = f._p = (unsigned char *) str; in vsscanf() 42 f._bf._size = f._r = strlen (str); in vsscanf() 43 f._read = __seofread; in vsscanf() 44 f._ub._base = NULL; in vsscanf() 45 f._lb._base = NULL; in vsscanf() 46 f._file = -1; /* No file. */ in vsscanf() 47 return _ssvfscanf ( &f, fmt, ap); in vsscanf()
|
D | sscanf.c | 427 FILE f; in sscanf() local 429 f._flags = __SRD | __SSTR; in sscanf() 430 f._flags2 = 0; in sscanf() 431 f._bf._base = f._p = (unsigned char *) str; in sscanf() 432 f._bf._size = f._r = strlen (str); in sscanf() 433 f._read = __seofread; in sscanf() 434 f._ub._base = NULL; in sscanf() 435 f._lb._base = NULL; in sscanf() 436 f._file = -1; /* No file. */ in sscanf() 438 ret = _ssvfscanf ( &f, fmt, ap); in sscanf()
|
D | vasiprintf.c | 39 FILE f; in vasiprintf() local 41 f._flags = __SWR | __SSTR | __SMBF ; in vasiprintf() 42 f._flags2 = 0; in vasiprintf() 43 f._bf._base = f._p = NULL; in vasiprintf() 44 f._bf._size = f._w = 0; in vasiprintf() 45 f._file = -1; /* No file. */ in vasiprintf() 46 ret = svfiprintf ( &f, fmt, ap); in vasiprintf() 49 *f._p = 0; in vasiprintf() 50 *strp = (char *) f._bf._base; in vasiprintf()
|
D | asiprintf.c | 34 FILE f; in asiprintf() local 37 f._flags = __SWR | __SSTR | __SMBF; in asiprintf() 38 f._flags2 = 0; in asiprintf() 39 f._bf._base = f._p = NULL; in asiprintf() 40 f._bf._size = f._w = 0; in asiprintf() 41 f._file = -1; /* No file. */ in asiprintf() 43 ret = svfiprintf ( &f, fmt, ap); in asiprintf() 47 *f._p = 0; in asiprintf() 48 *strp = (char *) f._bf._base; in asiprintf()
|
D | vasniprintf.c | 24 FILE f; in vasniprintf() local 30 f._flags = __SWR | __SSTR | __SOPT; in vasniprintf() 35 f._flags = __SWR | __SSTR | __SMBF; in vasniprintf() 39 f._flags2 = 0; in vasniprintf() 40 f._bf._base = f._p = (unsigned char *) buf; in vasniprintf() 48 f._bf._size = f._w = len; in vasniprintf() 49 f._file = -1; /* No file. */ in vasniprintf() 50 ret = svfiprintf ( &f, fmt, ap); in vasniprintf() 54 *f._p = '\0'; in vasniprintf() 55 return (char *) f._bf._base; in vasniprintf()
|
D | vasprintf.c | 39 FILE f; in vasprintf() local 41 f._flags = __SWR | __SSTR | __SMBF ; in vasprintf() 42 f._flags2 = 0; in vasprintf() 43 f._bf._base = f._p = NULL; in vasprintf() 44 f._bf._size = f._w = 0; in vasprintf() 45 f._file = -1; /* No file. */ in vasprintf() 46 ret = svfprintf ( &f, fmt, ap); in vasprintf() 49 *f._p = 0; in vasprintf() 50 *strp = (char *) f._bf._base; in vasprintf()
|
D | asprintf.c | 33 FILE f; in asprintf() local 36 f._flags = __SWR | __SSTR | __SMBF; in asprintf() 37 f._flags2 = 0; in asprintf() 38 f._bf._base = f._p = NULL; in asprintf() 39 f._bf._size = f._w = 0; in asprintf() 40 f._file = -1; /* No file. */ in asprintf() 42 ret = svfprintf ( &f, fmt, ap); in asprintf() 46 *f._p = 0; in asprintf() 47 *strp = (char *) f._bf._base; in asprintf()
|
D | asniprintf.c | 23 FILE f; in asniprintf() local 29 f._flags = __SWR | __SSTR | __SOPT; in asniprintf() 34 f._flags = __SWR | __SSTR | __SMBF; in asniprintf() 38 f._flags2 = 0; in asniprintf() 39 f._bf._base = f._p = (unsigned char *) buf; in asniprintf() 47 f._bf._size = f._w = len; in asniprintf() 48 f._file = -1; /* No file. */ in asniprintf() 50 ret = svfiprintf ( &f, fmt, ap); in asniprintf() 55 *f._p = '\0'; in asniprintf() 56 return (char *) f._bf._base; in asniprintf()
|
D | vasnprintf.c | 24 FILE f; in vasnprintf() local 30 f._flags = __SWR | __SSTR | __SOPT; in vasnprintf() 35 f._flags = __SWR | __SSTR | __SMBF; in vasnprintf() 39 f._flags2 = 0; in vasnprintf() 40 f._bf._base = f._p = (unsigned char *) buf; in vasnprintf() 48 f._bf._size = f._w = len; in vasnprintf() 49 f._file = -1; /* No file. */ in vasnprintf() 50 ret = svfprintf ( &f, fmt, ap); in vasnprintf() 54 *f._p = '\0'; in vasnprintf() 55 return (char *) f._bf._base; in vasnprintf()
|
D | vsiprintf.c | 37 FILE f; in vsiprintf() local 39 f._flags = __SWR | __SSTR; in vsiprintf() 40 f._flags2 = 0; in vsiprintf() 41 f._bf._base = f._p = (unsigned char *) str; in vsiprintf() 42 f._bf._size = f._w = INT_MAX; in vsiprintf() 43 f._file = -1; /* No file. */ in vsiprintf() 44 ret = svfiprintf ( &f, fmt, ap); in vsiprintf() 45 *f._p = 0; in vsiprintf()
|
D | siprintf.c | 108 FILE f; in siprintf() local 110 f._flags = __SWR | __SSTR; in siprintf() 111 f._flags2 = 0; in siprintf() 112 f._bf._base = f._p = (unsigned char *) str; in siprintf() 113 f._bf._size = f._w = INT_MAX; in siprintf() 114 f._file = -1; /* No file. */ in siprintf() 116 ret = svfiprintf ( &f, fmt, ap); in siprintf() 118 *f._p = 0; in siprintf()
|
D | asnprintf.c | 24 FILE f; in asnprintf() local 30 f._flags = __SWR | __SSTR | __SOPT; in asnprintf() 35 f._flags = __SWR | __SSTR | __SMBF; in asnprintf() 39 f._flags2 = 0; in asnprintf() 40 f._bf._base = f._p = (unsigned char *) buf; in asnprintf() 48 f._bf._size = f._w = len; in asnprintf() 49 f._file = -1; /* No file. */ in asnprintf() 51 ret = svfprintf (&f, fmt, ap); in asnprintf() 56 *f._p = '\0'; in asnprintf() 57 return (char *) f._bf._base; in asnprintf()
|
D | vsprintf.c | 40 FILE f; in vsprintf() local 42 f._flags = __SWR | __SSTR; in vsprintf() 43 f._flags2 = 0; in vsprintf() 44 f._bf._base = f._p = (unsigned char *) str; in vsprintf() 45 f._bf._size = f._w = INT_MAX; in vsprintf() 46 f._file = -1; /* No file. */ in vsprintf() 47 ret = svfprintf ( &f, fmt, ap); in vsprintf() 48 *f._p = 0; in vsprintf()
|
/picolibc-3.7.0-3.6.0/newlib/libm/math/ |
D | sf_log.c | 35 float hfsq, f, s, z, R, w, t1, t2, dk; in logf() local 57 f = x - (float)1.0; in logf() 59 if (f == zero) { in logf() 67 R = f * f * ((float)0.5 - (float)0.33333333333333333 * f); in logf() 69 return f - R; in logf() 72 return dk * ln2_hi - ((R - dk * ln2_lo) - f); in logf() 75 s = f / ((float)2.0 + f); in logf() 86 hfsq = (float)0.5 * f * f; in logf() 88 return f - (hfsq - s * (hfsq + R)); in logf() 90 return dk * ln2_hi - ((hfsq - (s * (hfsq + R) + dk * ln2_lo)) - f); in logf() [all …]
|
D | s_log.c | 86 __float64 hfsq, f, s, z, R, w, t1, t2, dk; in log64() local 109 f = x - _F_64(1.0); in log64() 111 if (f == zero) { in log64() 119 R = f * f * (_F_64(0.5) - _F_64(0.33333333333333333) * f); in log64() 121 return f - R; in log64() 124 return dk * ln2_hi - ((R - dk * ln2_lo) - f); in log64() 127 s = f / (_F_64(2.0) + f); in log64() 138 hfsq = _F_64(0.5) * f * f; in log64() 140 return f - (hfsq - s * (hfsq + R)); in log64() 142 return dk * ln2_hi - ((hfsq - (s * (hfsq + R) + dk * ln2_lo)) - f); in log64() [all …]
|