Home
last modified time | relevance | path

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

123456789

/picolibc-latest/test/
Dtest-fopen.c46 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 …]
Dtest-mktemp.c43 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 …]
Dlong_double_gen.5c7 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 …]
Dposix-io.c50 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-latest/newlib/libc/tinystdio/
Dbufio.c39 __bufio_flush_locked(FILE *f) in __bufio_flush_locked() argument
41 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_flush_locked()
77 int __bufio_fill_locked(FILE *f) in __bufio_fill_locked() argument
79 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_fill_locked()
101 __bufio_flush(FILE *f) in __bufio_flush() argument
105 __bufio_lock(f); in __bufio_flush()
106 ret = __bufio_flush_locked(f); in __bufio_flush()
107 __bufio_unlock(f); in __bufio_flush()
113 __bufio_setdir_locked(FILE *f, uint8_t dir) in __bufio_setdir_locked() argument
115 struct __file_bufio *bf = (struct __file_bufio *) f; in __bufio_setdir_locked()
[all …]
Dstdio-bufio.h124 static inline void __bufio_lock_init(FILE *f) { in __bufio_lock_init() argument
125 (void) f; in __bufio_lock_init()
126 __lock_init(((struct __file_bufio *) f)->lock); in __bufio_lock_init()
129 static inline void __bufio_lock_close(FILE *f) { in __bufio_lock_close() argument
130 (void) f; in __bufio_lock_close()
131 __lock_release(((struct __file_bufio *) f)->lock); in __bufio_lock_close()
132 __lock_close(((struct __file_bufio *) f)->lock); in __bufio_lock_close()
135 static inline void __bufio_lock(FILE *f) { in __bufio_lock() argument
136 (void) f; in __bufio_lock()
137 __lock_acquire(((struct __file_bufio *) f)->lock); in __bufio_lock()
[all …]
/picolibc-latest/newlib/libc/stdio/
Dswscanf.c419 FILE f; in swscanf() local
421 f._flags = __SRD | __SSTR; in swscanf()
422 f._flags2 = 0; in swscanf()
423 f._bf._base = f._p = (unsigned char *) str; in swscanf()
424 f._bf._size = f._r = wcslen (str) * sizeof (wchar_t); in swscanf()
425 f._read = __seofread; in swscanf()
426 f._ub._base = NULL; in swscanf()
427 f._lb._base = NULL; in swscanf()
428 f._flags2 = 0; in swscanf()
429 f._ur = 0; in swscanf()
[all …]
Dvswscanf.c36 FILE f; in vswscanf() local
38 f._flags = __SRD | __SSTR; in vswscanf()
39 f._bf._base = f._p = (unsigned char *) str; in vswscanf()
40 f._bf._size = f._r = wcslen (str) * sizeof (wchar_t); in vswscanf()
41 f._read = __seofread; in vswscanf()
42 f._ub._base = NULL; in vswscanf()
43 f._lb._base = NULL; in vswscanf()
44 f._flags2 = 0; in vswscanf()
45 f._ur = 0; in vswscanf()
46 f._file = -1; /* No file. */ in vswscanf()
[all …]
Dvsiscanf.c35 FILE f; in vsiscanf() local
37 f._flags = __SRD | __SSTR; in vsiscanf()
38 f._flags2 = 0; in vsiscanf()
39 f._bf._base = f._p = (unsigned char *) str; in vsiscanf()
40 f._bf._size = f._r = strlen (str); in vsiscanf()
41 f._read = __seofread; in vsiscanf()
42 f._ub._base = NULL; in vsiscanf()
43 f._lb._base = NULL; in vsiscanf()
44 f._file = -1; /* No file. */ in vsiscanf()
45 return _ssvfiscanf ( &f, fmt, ap); in vsiscanf()
Dvsscanf.c36 FILE f; in vsscanf() local
38 f._flags = __SRD | __SSTR; in vsscanf()
39 f._flags2 = 0; in vsscanf()
40 f._bf._base = f._p = (unsigned char *) str; in vsscanf()
41 f._bf._size = f._r = strlen (str); in vsscanf()
42 f._read = __seofread; in vsscanf()
43 f._ub._base = NULL; in vsscanf()
44 f._lb._base = NULL; in vsscanf()
45 f._file = -1; /* No file. */ in vsscanf()
46 return _ssvfscanf ( &f, fmt, ap); in vsscanf()
Dsiscanf.c87 FILE f; in siscanf() local
89 f._flags = __SRD | __SSTR; in siscanf()
90 f._flags2 = 0; in siscanf()
91 f._bf._base = f._p = (unsigned char *) str; in siscanf()
92 f._bf._size = f._r = strlen (str); in siscanf()
93 f._read = __seofread; in siscanf()
94 f._ub._base = NULL; in siscanf()
95 f._lb._base = NULL; in siscanf()
96 f._file = -1; /* No file. */ in siscanf()
98 ret = _ssvfiscanf ( &f, fmt, ap); in siscanf()
Dsscanf.c426 FILE f; in sscanf() local
428 f._flags = __SRD | __SSTR; in sscanf()
429 f._flags2 = 0; in sscanf()
430 f._bf._base = f._p = (unsigned char *) str; in sscanf()
431 f._bf._size = f._r = strlen (str); in sscanf()
432 f._read = __seofread; in sscanf()
433 f._ub._base = NULL; in sscanf()
434 f._lb._base = NULL; in sscanf()
435 f._file = -1; /* No file. */ in sscanf()
437 ret = _ssvfscanf ( &f, fmt, ap); in sscanf()
Dvasiprintf.c38 FILE f; in vasiprintf() local
40 f._flags = __SWR | __SSTR | __SMBF ; in vasiprintf()
41 f._flags2 = 0; in vasiprintf()
42 f._bf._base = f._p = NULL; in vasiprintf()
43 f._bf._size = f._w = 0; in vasiprintf()
44 f._file = -1; /* No file. */ in vasiprintf()
45 ret = svfiprintf ( &f, fmt, ap); in vasiprintf()
48 *f._p = 0; in vasiprintf()
49 *strp = (char *) f._bf._base; in vasiprintf()
Dasiprintf.c33 FILE f; in asiprintf() local
36 f._flags = __SWR | __SSTR | __SMBF; in asiprintf()
37 f._flags2 = 0; in asiprintf()
38 f._bf._base = f._p = NULL; in asiprintf()
39 f._bf._size = f._w = 0; in asiprintf()
40 f._file = -1; /* No file. */ in asiprintf()
42 ret = svfiprintf ( &f, fmt, ap); in asiprintf()
46 *f._p = 0; in asiprintf()
47 *strp = (char *) f._bf._base; in asiprintf()
Dvasprintf.c34 FILE f; in vasprintf() local
36 f._flags = __SWR | __SSTR | __SMBF ; in vasprintf()
37 f._flags2 = 0; in vasprintf()
38 f._bf._base = f._p = NULL; in vasprintf()
39 f._bf._size = f._w = 0; in vasprintf()
40 f._file = -1; /* No file. */ in vasprintf()
41 ret = svfprintf ( &f, fmt, ap); in vasprintf()
44 *f._p = 0; in vasprintf()
45 *strp = (char *) f._bf._base; in vasprintf()
Dvasniprintf.c23 FILE f; in vasniprintf() local
29 f._flags = __SWR | __SSTR | __SOPT; in vasniprintf()
34 f._flags = __SWR | __SSTR | __SMBF; in vasniprintf()
38 f._flags2 = 0; in vasniprintf()
39 f._bf._base = f._p = (unsigned char *) buf; in vasniprintf()
47 f._bf._size = f._w = len; in vasniprintf()
48 f._file = -1; /* No file. */ in vasniprintf()
49 ret = svfiprintf ( &f, fmt, ap); in vasniprintf()
53 *f._p = '\0'; in vasniprintf()
54 return (char *) f._bf._base; in vasniprintf()
Dasprintf.c32 FILE f; in asprintf() local
35 f._flags = __SWR | __SSTR | __SMBF; in asprintf()
36 f._flags2 = 0; in asprintf()
37 f._bf._base = f._p = NULL; in asprintf()
38 f._bf._size = f._w = 0; in asprintf()
39 f._file = -1; /* No file. */ in asprintf()
41 ret = svfprintf ( &f, fmt, ap); in asprintf()
45 *f._p = 0; in asprintf()
46 *strp = (char *) f._bf._base; in asprintf()
Dasniprintf.c22 FILE f; in asniprintf() local
28 f._flags = __SWR | __SSTR | __SOPT; in asniprintf()
33 f._flags = __SWR | __SSTR | __SMBF; in asniprintf()
37 f._flags2 = 0; in asniprintf()
38 f._bf._base = f._p = (unsigned char *) buf; in asniprintf()
46 f._bf._size = f._w = len; in asniprintf()
47 f._file = -1; /* No file. */ in asniprintf()
49 ret = svfiprintf ( &f, fmt, ap); in asniprintf()
54 *f._p = '\0'; in asniprintf()
55 return (char *) f._bf._base; in asniprintf()
Dvasnprintf.c23 FILE f; in vasnprintf() local
29 f._flags = __SWR | __SSTR | __SOPT; in vasnprintf()
34 f._flags = __SWR | __SSTR | __SMBF; in vasnprintf()
38 f._flags2 = 0; in vasnprintf()
39 f._bf._base = f._p = (unsigned char *) buf; in vasnprintf()
47 f._bf._size = f._w = len; in vasnprintf()
48 f._file = -1; /* No file. */ in vasnprintf()
49 ret = svfprintf ( &f, fmt, ap); in vasnprintf()
53 *f._p = '\0'; in vasnprintf()
54 return (char *) f._bf._base; in vasnprintf()
Dvsiprintf.c36 FILE f; in vsiprintf() local
38 f._flags = __SWR | __SSTR; in vsiprintf()
39 f._flags2 = 0; in vsiprintf()
40 f._bf._base = f._p = (unsigned char *) str; in vsiprintf()
41 f._bf._size = f._w = INT_MAX; in vsiprintf()
42 f._file = -1; /* No file. */ in vsiprintf()
43 ret = svfiprintf ( &f, fmt, ap); in vsiprintf()
44 *f._p = 0; in vsiprintf()
Dsiprintf.c107 FILE f; in siprintf() local
109 f._flags = __SWR | __SSTR; in siprintf()
110 f._flags2 = 0; in siprintf()
111 f._bf._base = f._p = (unsigned char *) str; in siprintf()
112 f._bf._size = f._w = INT_MAX; in siprintf()
113 f._file = -1; /* No file. */ in siprintf()
115 ret = svfiprintf ( &f, fmt, ap); in siprintf()
117 *f._p = 0; in siprintf()
Dasnprintf.c23 FILE f; in asnprintf() local
29 f._flags = __SWR | __SSTR | __SOPT; in asnprintf()
34 f._flags = __SWR | __SSTR | __SMBF; in asnprintf()
38 f._flags2 = 0; in asnprintf()
39 f._bf._base = f._p = (unsigned char *) buf; in asnprintf()
47 f._bf._size = f._w = len; in asnprintf()
48 f._file = -1; /* No file. */ in asnprintf()
50 ret = svfprintf (&f, fmt, ap); in asnprintf()
55 *f._p = '\0'; in asnprintf()
56 return (char *) f._bf._base; in asnprintf()
Dvsprintf.c39 FILE f; in vsprintf() local
41 f._flags = __SWR | __SSTR; in vsprintf()
42 f._flags2 = 0; in vsprintf()
43 f._bf._base = f._p = (unsigned char *) str; in vsprintf()
44 f._bf._size = f._w = INT_MAX; in vsprintf()
45 f._file = -1; /* No file. */ in vsprintf()
46 ret = svfprintf ( &f, fmt, ap); in vsprintf()
47 *f._p = 0; in vsprintf()
/picolibc-latest/newlib/libm/math/
Dsf_log.c35 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 …]
Ds_log.c86 __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 …]

123456789