Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 145) sorted by relevance

123456

/trusted-firmware-a-3.7.0/lib/compiler-rt/builtins/
Dudivmoddi4.c38 if (n.s.high == 0) { in __udivmoddi4()
39 if (d.s.high == 0) { in __udivmoddi4()
44 *rem = n.s.low % d.s.low; in __udivmoddi4()
45 return n.s.low / d.s.low; in __udivmoddi4()
51 *rem = n.s.low; in __udivmoddi4()
55 if (d.s.low == 0) { in __udivmoddi4()
56 if (d.s.high == 0) { in __udivmoddi4()
61 *rem = n.s.high % d.s.low; in __udivmoddi4()
62 return n.s.high / d.s.low; in __udivmoddi4()
65 if (n.s.low == 0) { in __udivmoddi4()
[all …]
Dlshrdi3.c25 result.s.high = 0; in __lshrdi3()
26 result.s.low = input.s.high >> (b - bits_in_word); in __lshrdi3()
30 result.s.high = input.s.high >> b; in __lshrdi3()
31 result.s.low = (input.s.high << (bits_in_word - b)) | (input.s.low >> b); in __lshrdi3()
Dint_div_impl.inc15 // Adapted from Figure 3-40 of The PowerPC Compiler Writer's Guide
36 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
37 carry = s & 1;
38 r -= d & s;
65 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
66 carry = s & 1;
67 r -= d & s;
87 fixint_t s = b >> N; // s = b < 0 ? -1 : 0
88 fixuint_t b_u = (fixuint_t)(b ^ s) + (-s); // negate if s == -1
89 s = a >> N; // s = a < 0 ? -1 : 0
[all …]
Dctzdi2.c32 const si_int f = -(x.s.low == 0); in __ctzdi2()
33 return ctzsi((x.s.high & f) | (x.s.low & ~f)) + in __ctzdi2()
Dint_types.h50 } s; member
63 } s; member
92 } s; member
105 } s; member
110 r.s.high = h; in make_ti()
111 r.s.low = l; in make_ti()
117 r.s.high = h; in make_tu()
118 r.s.low = l; in make_tu()
/trusted-firmware-a-3.7.0/lib/libc/
Dstrtoul.c50 const char *s; in strtoul() local
59 s = nptr; in strtoul()
61 c = *s++; in strtoul()
65 c = *s++; in strtoul()
69 c = *s++; in strtoul()
72 c == '0' && (*s == 'x' || *s == 'X') && in strtoul()
73 ((s[1] >= '0' && s[1] <= '9') || in strtoul()
74 (s[1] >= 'A' && s[1] <= 'F') || in strtoul()
75 (s[1] >= 'a' && s[1] <= 'f'))) { in strtoul()
76 c = s[1]; in strtoul()
[all …]
Dstrtoull.c50 const char *s; in strtoull() local
59 s = nptr; in strtoull()
61 c = *s++; in strtoull()
65 c = *s++; in strtoull()
69 c = *s++; in strtoull()
72 c == '0' && (*s == 'x' || *s == 'X') && in strtoull()
73 ((s[1] >= '0' && s[1] <= '9') || in strtoull()
74 (s[1] >= 'A' && s[1] <= 'F') || in strtoull()
75 (s[1] >= 'a' && s[1] <= 'f'))) { in strtoull()
76 c = s[1]; in strtoull()
[all …]
Dstrtol.c50 const char *s; in strtol() local
61 s = nptr; in strtol()
63 c = *s++; in strtol()
67 c = *s++; in strtol()
71 c = *s++; in strtol()
74 c == '0' && (*s == 'x' || *s == 'X') && in strtol()
75 ((s[1] >= '0' && s[1] <= '9') || in strtol()
76 (s[1] >= 'A' && s[1] <= 'F') || in strtol()
77 (s[1] >= 'a' && s[1] <= 'f'))) { in strtol()
78 c = s[1]; in strtol()
[all …]
Dstrtoll.c50 const char *s; in strtoll() local
61 s = nptr; in strtoll()
63 c = *s++; in strtoll()
67 c = *s++; in strtoll()
71 c = *s++; in strtoll()
74 c == '0' && (*s == 'x' || *s == 'X') && in strtoll()
75 ((s[1] >= '0' && s[1] <= '9') || in strtoll()
76 (s[1] >= 'A' && s[1] <= 'F') || in strtoll()
77 (s[1] >= 'a' && s[1] <= 'f'))) { in strtoll()
78 c = s[1]; in strtoll()
[all …]
Dstrtok.c40 strtok_r(char *s, const char *delim, char **last) in strtok_r() argument
45 if (s == NULL && (s = *last) == NULL) in strtok_r()
52 c = *s++; in strtok_r()
62 tok = s - 1; in strtok_r()
69 c = *s++; in strtok_r()
74 s = NULL; in strtok_r()
76 s[-1] = '\0'; in strtok_r()
77 *last = s; in strtok_r()
Dsnprintf.c32 static void string_print(char **s, size_t n, size_t *chars_printed, in string_print() argument
36 CHECK_AND_PUT_CHAR(*s, n, *chars_printed, *str); in string_print()
41 static void unsigned_num_print(char **s, size_t n, size_t *chars_printed, in unsigned_num_print() argument
72 CHECK_AND_PUT_CHAR(*s, n, *chars_printed, padc); in unsigned_num_print()
75 CHECK_AND_PUT_CHAR(*s, n, *chars_printed, num_buf[i - 1]); in unsigned_num_print()
78 CHECK_AND_PUT_CHAR(*s, n, *chars_printed, padc); in unsigned_num_print()
109 int vsnprintf(char *s, size_t n, const char *fmt, va_list args) in vsnprintf() argument
125 *s = '\0'; in vsnprintf()
145 CHECK_AND_PUT_CHAR(s, n, chars_printed, '%'); in vsnprintf()
175 CHECK_AND_PUT_CHAR(s, n, chars_printed, in vsnprintf()
[all …]
Dmemcpy_s.c14 unsigned int *s = (unsigned int *)src; in memcpy_s() local
44 if (d > s) { in memcpy_s()
45 if ((d) < (s + ssize)) { in memcpy_s()
50 if (s > d) { in memcpy_s()
51 if ((s) < (d + dsize)) { in memcpy_s()
60 d[ssize] = s[ssize]; in memcpy_s()
Dmemchr.c12 const unsigned char *s = src; in memchr() local
15 if (*s == (unsigned char)c) in memchr()
16 return (void *) s; in memchr()
17 s++; in memchr()
Dputs.c9 int puts(const char *s) in puts() argument
13 while (*s != '\0') { in puts()
14 if (putchar(*s) == EOF) in puts()
16 s++; in puts()
Dmemrchr.c13 const unsigned char *s = src + (len - 1); in memrchr() local
16 if (*s == (unsigned char)c) { in memrchr()
17 return (void*) s; in memrchr()
20 s--; in memrchr()
Dstrlen.c9 size_t strlen(const char *s) in strlen() argument
11 const char *cursor = s; in strlen()
16 return cursor - s; in strlen()
Dstrnlen.c37 strnlen(const char *s, size_t maxlen) in strnlen() argument
41 for (len = 0; len < maxlen; len++, s++) { in strnlen()
42 if (!*s) in strnlen()
/trusted-firmware-a-3.7.0/include/common/
Dep_info.h23 #define sec_state_is_valid(s) (((s) == SECURE) || \ argument
24 ((s) == NON_SECURE) || \
25 ((s) == REALM))
27 #define sec_state_is_valid(s) (((s) == SECURE) || ((s) == NON_SECURE)) argument
/trusted-firmware-a-3.7.0/plat/mediatek/mt8192/include/
Dplat_pm.h27 #define IS_CLUSTER_OFF_STATE(s) \ argument
28 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_CLUSTER])
29 #define IS_MCUSYS_OFF_STATE(s) \ argument
30 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_MCUSYS])
31 #define IS_SYSTEM_SUSPEND_STATE(s) \ argument
32 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_SYSTEM])
/trusted-firmware-a-3.7.0/plat/mediatek/mt8195/include/
Dplat_pm.h27 #define IS_CLUSTER_OFF_STATE(s) \ argument
28 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_CLUSTER])
29 #define IS_MCUSYS_OFF_STATE(s) \ argument
30 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_MCUSYS])
31 #define IS_SYSTEM_SUSPEND_STATE(s) \ argument
32 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_SYSTEM])
/trusted-firmware-a-3.7.0/services/spd/trusty/
Dgeneric-arm64-smcall.c43 struct dputc_state *s = &dputc_state[!secure]; in trusty_dputc() local
48 s->linebuf[s->l++] = ch; in trusty_dputc()
49 if (s->l == sizeof(s->linebuf) || ch == '\n') { in trusty_dputc()
54 for (i = 0; i < s->l; i++) { in trusty_dputc()
55 putchar(s->linebuf[i]); in trusty_dputc()
60 s->l = 0; in trusty_dputc()
/trusted-firmware-a-3.7.0/include/lib/libc/
Dstdio.h21 int snprintf(char *s, size_t n, const char *fmt, ...) __printflike(3, 4);
25 int vsnprintf(char *s, size_t n, const char *fmt, va_list args);
29 int puts(const char *s);
Dstring.h25 char *strchr(const char *s, int c);
27 size_t strlen(const char *s);
28 size_t strnlen(const char *s, size_t maxlen);
32 char *strtok_r(char *s, const char *delim, char **last);
/trusted-firmware-a-3.7.0/tools/fiptool/
Dwin_posix.h131 inline int chdir(const char *s) in chdir() argument
133 return _chdir(s); in chdir()
141 inline char *strdup(const char *s) in strdup() argument
143 return _strdup(s); in strdup()
/trusted-firmware-a-3.7.0/plat/mediatek/mt8186/include/
Dplat_pm.h37 #define IS_CLUSTER_OFF_STATE(s) \ argument
38 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_CLUSTER])
39 #define IS_MCUSYS_OFF_STATE(s) \ argument
40 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_MCUSYS])
41 #define IS_SYSTEM_SUSPEND_STATE(s) \ argument
42 is_local_state_off(s->pwr_domain_state[MTK_AFFLVL_SYSTEM])

123456