/picolibc-3.7.0-3.6.0/newlib/libc/time/ |
D | lcltime_r.c | 36 struct tm *__restrict res) in localtime_r() argument 44 res = gmtime_r (tim_p, res); in localtime_r() 46 year = res->tm_year + YEAR_BASE; in localtime_r() 54 res->tm_isdst = (tz->__tznorth in localtime_r() 60 res->tm_isdst = -1; in localtime_r() 63 res->tm_isdst = 0; in localtime_r() 65 offset = (res->tm_isdst == 1 in localtime_r() 75 res->tm_sec -= secs; in localtime_r() 76 res->tm_min -= mins; in localtime_r() 77 res->tm_hour -= hours; in localtime_r() [all …]
|
D | gmtime_r.c | 66 struct tm *__restrict res) in gmtime_r() argument 83 res->tm_hour = (int) (rem / SECSPERHOUR); in gmtime_r() 85 res->tm_min = (int) (rem / SECSPERMIN); in gmtime_r() 86 res->tm_sec = (int) (rem % SECSPERMIN); in gmtime_r() 91 res->tm_wday = weekday; in gmtime_r() 106 res->tm_yday = yearday >= DAYS_PER_YEAR - DAYS_IN_JANUARY - DAYS_IN_FEBRUARY ? in gmtime_r() 109 res->tm_year = year - YEAR_BASE; in gmtime_r() 110 res->tm_mon = month; in gmtime_r() 111 res->tm_mday = day; in gmtime_r() 113 res->tm_isdst = 0; in gmtime_r() [all …]
|
D | clock.c | 71 clock_t res; in clock() local 73 if ((res = (clock_t) times (&tim_s)) != (clock_t) -1) in clock() 74 res = (clock_t) (tim_s.tms_utime + tim_s.tms_stime + in clock() 77 return res; in clock()
|
D | mktime.c | 101 div_t res; in validate_structure() local 107 res = div (tim_p->tm_sec, 60); in validate_structure() 108 tim_p->tm_min += res.quot; in validate_structure() 109 if ((tim_p->tm_sec = res.rem) < 0) in validate_structure() 118 res = div (tim_p->tm_min, 60); in validate_structure() 119 tim_p->tm_hour += res.quot; in validate_structure() 120 if ((tim_p->tm_min = res.rem) < 0) in validate_structure() 129 res = div (tim_p->tm_hour, 24); in validate_structure() 130 tim_p->tm_mday += res.quot; in validate_structure() 131 if ((tim_p->tm_hour = res.rem) < 0) in validate_structure() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/ |
D | utf-8.c | 133 ucs4_t res; in convert_to_ucs() local 145 res = ((ucs4_t)(in[0] & 0x1F) << 6) in convert_to_ucs() 150 if (res < 0x00000080) /* Overlong sequence */ in convert_to_ucs() 162 res = ((ucs4_t)(in[0] & 0x0F) << 12) in convert_to_ucs() 168 if (res < 0x00000800) /* Overlong sequence */ in convert_to_ucs() 181 res = ((ucs4_t)(in[0] & 0x07) << 18) in convert_to_ucs() 188 if (res < 0x00010000) /* Overlong sequence */ in convert_to_ucs() 202 res = ((ucs4_t)(in[0] & 0x03) << 24) in convert_to_ucs() 210 if (res < 0x00200000) /* Overlong sequence */ in convert_to_ucs() 225 res = ((ucs4_t)(in[0] & 0x1) << 30) in convert_to_ucs() [all …]
|
D | ucs-4.c | 114 ucs4_t res; in ucs_4_convert_to_ucs() local 124 res = ICONV_BETOHL (uc); in ucs_4_convert_to_ucs() 126 res = ICONV_LETOHL (uc); in ucs_4_convert_to_ucs() 128 if ((res >= 0x0000D800 && res <= 0x0000DFFF) /* Surrogate character */ in ucs_4_convert_to_ucs() 129 || res > 0x7FFFFFFF || res == 0x0000FFFF || res == 0x0000FFFE) in ucs_4_convert_to_ucs() 135 return res; in ucs_4_convert_to_ucs()
|
D | ucs-2.c | 112 ucs4_t res; in ucs_2_convert_to_ucs() local 122 res = (ucs4_t)ICONV_BETOHS (uc); in ucs_2_convert_to_ucs() 124 res = (ucs4_t)ICONV_LETOHS (uc); in ucs_2_convert_to_ucs() 126 if ((res >= 0x0000D800 && res <= 0x0000DFFF) /* Surrogate character */ in ucs_2_convert_to_ucs() 127 || res >= 0x0000FFFE) in ucs_2_convert_to_ucs() 133 return res; in ucs_2_convert_to_ucs()
|
D | euc.c | 169 size_t res = 0; in euc_from_ucs_close() local 174 res |= _iconv_from_ucs_ces_handlers_table.close ( in euc_from_ucs_close() 179 return res; in euc_from_ucs_close() 190 int res; in euc_convert_from_ucs() local 212 res = in euc_convert_from_ucs() 218 if (res > 0) in euc_convert_from_ucs() 227 res = (int)_iconv_from_ucs_ces_handlers_table.convert_from_ucs ( in euc_convert_from_ucs() 232 if (res == d->desc[i].bytes) in euc_convert_from_ucs() 248 return (size_t)(res + d->desc[i].bytes); in euc_convert_from_ucs() 324 size_t res = 0; in euc_to_ucs_close() local [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/ |
D | mremap_ea.c | 48 unsigned long long res; in mremap_ea() 49 res = mremap_eaddr ((unsigned long long) (unsigned int) old_address, in mremap_ea() 51 if (res != MAP_FAILED_EADDR && res > 0xffffffffULL) in mremap_ea() 56 munmap_eaddr (res, new_size); in mremap_ea() 58 res = MAP_FAILED_EADDR; in mremap_ea() 60 return (__ea void *) (int) res; in mremap_ea()
|
D | mmap_ea.c | 52 unsigned long long res; in mmap_ea() 57 res = mmap_eaddr ((unsigned long long) (unsigned int) start, length, in mmap_ea() 59 if (res != MAP_FAILED_EADDR && res > 0xffffffffULL) { in mmap_ea() 60 munmap_eaddr (res, length); in mmap_ea() 62 res = MAP_FAILED_EADDR; in mmap_ea() 64 return (__ea void *) (int) res; in mmap_ea()
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | strxfrm.c | 69 size_t res; in strxfrm() local 70 res = 0; in strxfrm() 74 ++res; in strxfrm() 76 return res; in strxfrm() 81 ++res; in strxfrm() 84 return res; in strxfrm()
|
D | strxfrm_l.c | 59 size_t res; in strxfrm_l() local 61 res = 0; in strxfrm_l() 65 ++res; in strxfrm_l() 67 return res; in strxfrm_l() 72 ++res; in strxfrm_l() 75 return res; in strxfrm_l()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/sparc/machine/ |
D | sparclet.h | 31 int res; in scan() local 32 __asm__ ("scan %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); in scan() 33 return res; in scan() 41 int res; in shuffle() local 42 __asm__ ("shuffle %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); in shuffle() 43 return res; in shuffle()
|
/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | math2.c | 36 double res; in randx() local 42 double res; in randx() member 56 res = u.res; in randx() 58 } while (!finite(res)); in randx() 60 return res ; in randx() 215 double res; in test_pow() local 221 res = pow(n1, n2); in test_pow() 223 test_mok(shouldbe, res,55); in test_pow() 232 float res; in test_pow() local 240 res = powf(n1, n2); in test_pow() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/w65/ |
D | divsi3.c | 45 long int res = 0; in divmodsi4() local 57 res |= bit; in divmodsi4() 63 return res; in divmodsi4() 67 #define exitdiv(sign, res) if (sign) { res = - res;} return res; argument
|
D | mulsi3.c | 22 long res = 0; in __mulsi3() local 27 res += b; in __mulsi3() 32 return res; in __mulsi3()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/h8500/ |
D | divsi3.c | 45 long int res = 0; in divmodsi4() local 57 res |= bit; in divmodsi4() 63 return res; in divmodsi4() 67 #define exitdiv(sign, res) if (sign) { res = - res;} return res; argument
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/sparc/ |
D | scan.c | 26 int res; in scan() local 27 __asm__ ("scan %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); in scan() 28 return res; in scan()
|
D | shuffle.c | 26 int res; in shuffle() local 27 __asm__ ("shuffle %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); in shuffle() 28 return res; in shuffle()
|
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | acosf.h | 42 float res; in _acosf() local 46 res = spu_extract(_acosf4(vx), 0); in _acosf() 53 return res; in _acosf()
|
D | asin.h | 42 double res; in _asin() local 46 res = spu_extract(_asind2(vx), 0); in _asin() 53 return res; in _asin()
|
D | asinf.h | 42 float res; in _asinf() local 46 res = spu_extract(_asinf4(vx), 0); in _asinf() 53 return res; in _asinf()
|
D | atanh.h | 42 double res; in _atanh() local 46 res = spu_extract(_atanhd2(vx), 0); in _atanh() 53 return res; in _atanh()
|
D | atanhf.h | 42 float res; in _atanhf() local 46 res = spu_extract(_atanhf4(vx), 0); in _atanhf() 53 return res; in _atanhf()
|
D | acos.h | 42 double res; in _acos() local 46 res = spu_extract(_acosd2(vx), 0); in _acos() 53 return res; in _acos()
|