Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 73) 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/libm/upstream-freebsd/lib/msun/src/
De_sinhf.c27 float t,h; in sinhf() local
36 h = 0.5; in sinhf()
37 if (jx<0) h = -h; in sinhf()
43 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one)); in sinhf()
44 return h*(t+t/(t+one)); in sinhf()
48 if (ix < 0x42b17217) return h*expf(fabsf(x)); in sinhf()
52 return h*2.0F*__ldexp_expf(fabsf(x), -1); in sinhf()
De_sinh.c45 double t,h; in sinh() local
55 h = 0.5; in sinh()
56 if (jx<0) h = -h; in sinh()
62 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one)); in sinh()
63 return h*(t+t/(t+one)); in sinh()
67 if (ix < 0x40862E42) return h*exp(fabs(x)); in sinh()
71 return h*2.0*__ldexp_exp(fabs(x), -1); in 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_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()
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()
De_jnf.c114 float q0,q1,h,tmp; int32_t k,m; in jnf() local
115 w = (n+n)/(float)x; h = (float)2.0/(float)x; in jnf()
116 q0 = w; z = w+h; q1 = w*z - (float)1.0; k=1; in jnf()
118 k += 1; z += h; in jnf()
/bionic/docs/
Dstatus.md35 * `<aio.h>`
36 * `<monetary.h>`. See
38 * `<wordexp.h>`
62 (see `<android/crash_detail.h>` for full documentation).
71 * New system call wrappers: `__riscv_flush_icache` (`<sys/cachectl.h>`),
72 `__riscv_hwprobe` (`<sys/hwprobe.h>`), `epoll_pwait2`/`epoll_pwait2_64` (`<sys/epoll.h>`).
82 * `memset_explicit` in <string.h> (C23 addition).
83 * `__freadahead` in <stdio_ext.h> (in musl but not glibc).
85 `posix_spawn_file_actions_addfchdir_np` in <spawn.h> (in musl/glibc
96 * `backtrace`, `backtrace_symbols`, `backtrace_symbols_fd` (`<execinfo.h>`).
[all …]
/bionic/libc/kernel/uapi/linux/
Dbits.h9 #define __GENMASK(h,l) (((~_UL(0)) - (_UL(1) << (l)) + 1) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))… argument
10 #define __GENMASK_ULL(h,l) (((~_ULL(0)) - (_ULL(1) << (l)) + 1) & (~_ULL(0) >> (__BITS_PER_LONG_LON… argument
Dromfs_fs.h16 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument
17 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
Dpkt_cls.h151 #define TC_U32_HTID(h) ((h) & 0xFFF00000) argument
152 #define TC_U32_USERHTID(h) (TC_U32_HTID(h) >> 20) argument
153 #define TC_U32_HASH(h) (((h) >> 12) & 0xFF) argument
154 #define TC_U32_NODE(h) ((h) & 0xFFF) argument
155 #define TC_U32_KEY(h) ((h) & 0xFFFFF) argument
/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/include/
Dstring.h244 char* _Nullable __bionic_strstr(const char* _Nonnull h, const char* _Nonnull n) { return strstr(h, … in __bionic_strstr() argument
247 const char* _Nullable strstr(const char* _Nonnull h, const char* _Nonnull n) __prefer_this_overload… in strstr() argument
248 return __bionic_strstr(h, n); in strstr()
252 char* _Nullable strstr(char* _Nonnull h, const char* _Nonnull n) __prefer_this_overload { in strstr() argument
253 return __bionic_strstr(h, n); in strstr()
257 char* _Nullable __bionic_strpbrk(const char* _Nonnull h, const char* _Nonnull n) { return strpbrk(h in __bionic_strpbrk() argument
260 char* _Nullable strpbrk(char* _Nonnull h, const char* _Nonnull n) __prefer_this_overload { in strpbrk() argument
261 return __bionic_strpbrk(h, n); in strpbrk()
265 const char* _Nullable strpbrk(const char* _Nonnull h, const char* _Nonnull n) __prefer_this_overloa… in strpbrk() argument
266 return __bionic_strpbrk(h, n); in strpbrk()
/bionic/libc/include/bits/
Dauxvec.h41 #if __has_include(<asm/hwcap.h>)
44 #if __has_include(<asm/hwcap2.h>)
/bionic/tests/
Dsys_cachectl_test.cpp31 #if __has_include(<sys/cachectl.h>)
36 #if defined(__riscv) && __has_include(<sys/cachectl.h>) in TEST()
Dsys_hwprobe_test.cpp31 #if __has_include(<sys/hwprobe.h>)
99 #if defined(__riscv) && __has_include(<sys/hwprobe.h>) in TEST()
119 #if defined(__riscv) && __has_include(<sys/hwprobe.h>) in TEST()
141 #if defined(__riscv) && __has_include(<sys/hwprobe.h>) in TEST()
/bionic/tools/versioner/tests/version_mismatch/
Dexpected_fail4 extern declaration @ headers/foo.h:6:1
6 extern declaration @ headers/foo.h:8:1
/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/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

123