Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 65) sorted by relevance

123

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c30 twobyte_strstr(const unsigned char *h, const unsigned char *n) in twobyte_strstr() argument
32 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr()
33 for (h++; *h && hw != nw; hw = hw<<8 | *++h); in twobyte_strstr()
34 return *h ? (char *)h-1 : 0; in twobyte_strstr()
38 threebyte_strstr(const unsigned char *h, const unsigned char *n) in threebyte_strstr() argument
41 uint32_t hw = h[0]<<24 | h[1]<<16 | h[2]<<8; in threebyte_strstr()
42 for (h+=2; *h && hw != nw; hw = (hw|*++h)<<8); in threebyte_strstr()
43 return *h ? (char *)h-2 : 0; in threebyte_strstr()
47 fourbyte_strstr(const unsigned char *h, const unsigned char *n) in fourbyte_strstr() argument
50 uint32_t hw = h[0]<<24 | h[1]<<16 | h[2]<<8 | h[3]; in fourbyte_strstr()
[all …]
Dmemmem.c30 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument
32 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_memmem()
33 for (h+=2, k-=2; k; k--, hw = hw<<8 | *h++) in twobyte_memmem()
34 if (hw == nw) return (char *)h-2; in twobyte_memmem()
35 return hw == nw ? (char *)h-2 : 0; in twobyte_memmem()
39 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument
42 uint32_t hw = h[0]<<24 | h[1]<<16 | h[2]<<8; in threebyte_memmem()
43 for (h+=3, k-=3; k; k--, hw = (hw|*h++)<<8) in threebyte_memmem()
44 if (hw == nw) return (char *)h-3; in threebyte_memmem()
45 return hw == nw ? (char *)h-3 : 0; in threebyte_memmem()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dquick_exit.c58 struct quick_exit_handler *h; in at_quick_exit() local
60 h = malloc(sizeof(*h)); in at_quick_exit()
62 if (NULL == h) in at_quick_exit()
64 h->cleanup = func; in at_quick_exit()
66 h->next = handlers; in at_quick_exit()
68 handlers = h; in at_quick_exit()
76 struct quick_exit_handler *h; in quick_exit() local
82 for (h = handlers; NULL != h; h = h->next) { in quick_exit()
84 h->cleanup(); in quick_exit()
/bionic/docs/
Dstatus.md34 * `<aio.h>`
35 * `<monetary.h>`. See
37 * `<wordexp.h>`
54 * Full C11 `<threads.h>` (available as inlines for older API levels).
64 * `timespec_get` (C11 `<time.h>` addition)
65 * `reallocarray` (BSD/GNU extension in `<malloc.h>` and `<stdlib.h>`)
66 * `res_randomid` (in `<resolv.h>`)
68 * `getloadavg` (BSD/GNU extension in <stdlib.h>)
86 * `__freading`/`__fwriting` (completing <stdio_ext.h>)
87 …ndprotoent`/`getnetent`/`getprotoent`/`sethostent`/`setnetent`/`setprotoent` (completing <netdb.h>)
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
De_sinhf.c27 float t,h; in __ieee754_sinhf() local
36 h = 0.5; in __ieee754_sinhf()
37 if (jx<0) h = -h; in __ieee754_sinhf()
43 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one)); in __ieee754_sinhf()
44 return h*(t+t/(t+one)); in __ieee754_sinhf()
48 if (ix < 0x42b17217) return h*__ieee754_expf(fabsf(x)); in __ieee754_sinhf()
52 return h*2.0F*__ldexp_expf(fabsf(x), -1); in __ieee754_sinhf()
De_sinh.c45 double t,h; in __ieee754_sinh() local
55 h = 0.5; in __ieee754_sinh()
56 if (jx<0) h = -h; in __ieee754_sinh()
62 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one)); in __ieee754_sinh()
63 return h*(t+t/(t+one)); in __ieee754_sinh()
67 if (ix < 0x40862E42) return h*__ieee754_exp(fabs(x)); in __ieee754_sinh()
71 return h*2.0*__ldexp_exp(fabs(x), -1); in __ieee754_sinh()
Ds_ccoshf.c46 float x, y, h; in ccoshf() local
67 h = expf(fabsf(x)) * 0.5F; in ccoshf()
68 return (CMPLXF(h * cosf(y), copysignf(h, x) * sinf(y))); in ccoshf()
75 h = huge * x; in ccoshf()
76 return (CMPLXF(h * h * cosf(y), h * sinf(y))); in ccoshf()
Ds_csinhf.c46 float x, y, h; in csinhf() local
67 h = expf(fabsf(x)) * 0.5F; in csinhf()
68 return (CMPLXF(copysignf(h, x) * cosf(y), h * sinf(y))); in csinhf()
75 h = huge * x; in csinhf()
76 return (CMPLXF(h * cosf(y), h * h * sinf(y))); in csinhf()
Ds_ccosh.c54 double x, y, h; in ccosh() local
76 h = exp(fabs(x)) * 0.5; in ccosh()
77 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh()
84 h = huge * x; in ccosh()
85 return (CMPLX(h * h * cos(y), h * sin(y))); in ccosh()
Ds_csinh.c54 double x, y, h; in csinh() local
76 h = exp(fabs(x)) * 0.5; in csinh()
77 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh()
84 h = huge * x; in csinh()
85 return (CMPLX(h * cos(y), h * h * sin(y))); in csinh()
De_jnf.c114 float q0,q1,h,tmp; int32_t k,m; in __ieee754_jnf() local
115 w = (n+n)/(float)x; h = (float)2.0/(float)x; in __ieee754_jnf()
116 q0 = w; z = w+h; q1 = w*z - (float)1.0; k=1; in __ieee754_jnf()
118 k += 1; z += h; in __ieee754_jnf()
De_jn.c157 double q0,q1,h,tmp; int32_t k,m; in __ieee754_jn() local
158 w = (n+n)/(double)x; h = 2.0/(double)x; in __ieee754_jn()
159 q0 = w; z = w+h; q1 = w*z - 1.0; k=1; in __ieee754_jn()
161 k += 1; z += h; in __ieee754_jn()
/bionic/libc/include/
Dstring.h204 char* __bionic_strstr(const char* h, const char* n) { return strstr(h, n); } in __bionic_strstr() argument
207 const char* strstr(const char* h, const char* n) __prefer_this_overload { in strstr() argument
208 return __bionic_strstr(h, n); in strstr()
212 char* strstr(char* h, const char* n) __prefer_this_overload { in strstr() argument
213 return __bionic_strstr(h, n); in strstr()
217 char* __bionic_strpbrk(const char* h, const char* n) { return strpbrk(h, n); } in __bionic_strpbrk() argument
220 char* strpbrk(char* h, const char* n) __prefer_this_overload { in strpbrk() argument
221 return __bionic_strpbrk(h, n); in strpbrk()
225 const char* strpbrk(const char* h, const char* n) __prefer_this_overload { in strpbrk() argument
226 return __bionic_strpbrk(h, n); in strpbrk()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dhd_init.c38 htinit(h, s, inc) unsigned char *h; unsigned char *s; int inc; in htinit() argument
40 htinit(unsigned char *h, unsigned char *s, int inc)
45 h[j] = i + inc;
Dhexnan.c60 ULong c, h, *x, *x1, *xe; local
81 if (!(h = hexdig[c])) {
123 *x = (*x << 4) | (h & 0xf);
/bionic/linker/
Dlinker_gnu_hash.h47 uint32_t h = 5381; in calculate_gnu_hash_simple() local
51 h += (h << 5) + *name_bytes++; // h*33 + c = h + h * 32 + c = h + h << 5 + c in calculate_gnu_hash_simple()
53 return { h, reinterpret_cast<const char*>(name_bytes) - name }; in calculate_gnu_hash_simple()
/bionic/libc/kernel/uapi/linux/
Dromfs_fs.h28 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument
29 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
Dpkt_cls.h158 #define TC_U32_HTID(h) ((h) & 0xFFF00000) argument
159 #define TC_U32_USERHTID(h) (TC_U32_HTID(h) >> 20) argument
160 #define TC_U32_HASH(h) (((h) >> 12) & 0xFF) argument
161 #define TC_U32_NODE(h) ((h) & 0xFFF) argument
162 #define TC_U32_KEY(h) ((h) & 0xFFFFF) argument
/bionic/libc/include/bits/
Dauxvec.h41 #if __has_include(<asm/hwcap.h>)
44 #if __has_include(<asm/hwcap2.h>)
/bionic/tools/versioner/tests/multiple_decl_mismatch/
Dexpected_fail4 extern declaration @ headers/bar.h:5:1
6 extern declaration @ headers/foo.h:5:1
/bionic/tools/versioner/tests/version_mismatch/
Dexpected_fail4 extern declaration @ headers/foo.h:6:1
6 extern declaration @ headers/foo.h:8:1
/bionic/tests/headers/posix/
Dsignal_h.c34 void (*h)(int); in signal_h() local
35 h = SIG_DFL; in signal_h()
36 h = SIG_ERR; in signal_h()
37 h = SIG_HOLD; in signal_h()
38 h = SIG_IGN; in signal_h()
/bionic/tests/libs/
Dld_config_test_helper.cpp20 #if __has_include(<sys/auxv.h>)
31 #if __has_include(<sys/auxv.h>) in main()
/bionic/tools/versioner/tests/multiple_definition/
Dexpected_fail3 static definition @ headers/foo.h:5:1
5 static definition @ headers/bar.h:5:1
/bionic/libc/kernel/tools/
Dgenerate_uapi_headers.sh76 elif [[ -f "${file}" ]] && [[ "${file}" =~ .h$ ]]; then
97 if [[ -f "${file}" ]] && [[ "${file}" =~ .h$ ]]; then
118 elif [[ -f "${file}" ]] && [[ "${file}" =~ .h$ ]]; then

123