Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 91) sorted by relevance

1234

/bionic/libc/private/
Dbionic_macros.h36 #define BIONIC_ALIGN(value, alignment) \ argument
37 (((value) + (alignment) - 1) & ~((alignment) - 1))
39 #define BIONIC_ROUND_UP_POWER_OF_2(value) \ argument
40 (sizeof(value) == 8) \
41 ? (1UL << (64 - __builtin_clzl(static_cast<unsigned long>(value)))) \
42 : (1UL << (32 - __builtin_clz(static_cast<unsigned int>(value))))
Dkernel_sigset_t.h29 kernel_sigset_t(const sigset_t* value) { in kernel_sigset_t() argument
31 set(value); in kernel_sigset_t()
38 void set(const sigset_t* value) { in set() argument
39 bionic = *value; in set()
Dbionic_futex.h42 static inline __always_inline int __futex(volatile void* ftx, int op, int value, const struct times… in __futex() argument
45 int result = syscall(__NR_futex, ftx, op, value, timeout); in __futex()
61 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) { in __futex_wait() argument
62 return __futex(ftx, FUTEX_WAIT, value, timeout); in __futex_wait()
65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, const struct timespec… in __futex_wait_ex() argument
66 return __futex(ftx, shared ? FUTEX_WAIT : FUTEX_WAIT_PRIVATE, value, timeout); in __futex_wait_ex()
/bionic/libc/bionic/
Deventfd_read.cpp32 int eventfd_read(int fd, eventfd_t* value) { in eventfd_read() argument
33 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1; in eventfd_read()
Deventfd_write.cpp32 int eventfd_write(int fd, eventfd_t value) { in eventfd_write() argument
33 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1; in eventfd_write()
Dpthread_mutex.cpp268 mutex->value = MUTEX_TYPE_BITS_NORMAL; in pthread_mutex_init()
272 int value = 0; in pthread_mutex_init() local
274 value |= MUTEX_SHARED_MASK; in pthread_mutex_init()
279 value |= MUTEX_TYPE_BITS_NORMAL; in pthread_mutex_init()
282 value |= MUTEX_TYPE_BITS_RECURSIVE; in pthread_mutex_init()
285 value |= MUTEX_TYPE_BITS_ERRORCHECK; in pthread_mutex_init()
291 mutex->value = value; in pthread_mutex_init()
318 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) != 0) { in _normal_lock()
336 while (__bionic_swap(locked_contended, &mutex->value) != unlocked) { in _normal_lock()
337 __futex_wait_ex(&mutex->value, shared, locked_contended, NULL); in _normal_lock()
[all …]
Dpthread_cond.cpp111 cond->value = (*attr & COND_FLAGS_MASK); in pthread_cond_init()
113 cond->value = 0; in pthread_cond_init()
120 cond->value = 0xdeadc04d; in pthread_cond_destroy()
128 int flags = (cond->value & COND_FLAGS_MASK); in __pthread_cond_pulse()
130 int old_value = cond->value; in __pthread_cond_pulse()
132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) { in __pthread_cond_pulse()
147 __futex_wake_ex(&cond->value, COND_IS_SHARED(cond->value), counter); in __pthread_cond_pulse()
153 int old_value = cond->value; in __pthread_cond_timedwait_relative()
156 int status = __futex_wait_ex(&cond->value, COND_IS_SHARED(cond->value), old_value, reltime); in __pthread_cond_timedwait_relative()
191 return __pthread_cond_timedwait(cond, mutex, NULL, COND_GET_CLOCK(cond->value)); in pthread_cond_wait()
[all …]
Dsystem_properties.cpp124 char value[PROP_VALUE_MAX]; member
127 prop_info(const char *name, const uint8_t namelen, const char *value, in prop_info()
132 memcpy(this->value, value, valuelen); in prop_info()
133 this->value[valuelen] = '\0'; in prop_info()
325 const char *value, uint8_t valuelen, uint32_t *const off) in new_prop_info() argument
330 prop_info* info = new(offset) prop_info(name, namelen, value, valuelen); in new_prop_info()
418 uint8_t namelen, const char *value, uint8_t valuelen, in find_property() argument
465 prop_info* new_info = new_prop_info(name, namelen, value, valuelen, &new_info_offset); in find_property()
601 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read() argument
604 return __system_property_read_compat(pi, name, value); in __system_property_read()
[all …]
Dlibc_logging.cpp159 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
164 while (value) { in format_unsigned()
165 unsigned d = value % base; in format_unsigned()
166 value /= base; in format_unsigned()
195 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument
206 if (is_signed && static_cast<int64_t>(value) < 0) { in format_integer()
210 value = static_cast<uint64_t>(-static_cast<int64_t>(value)); in format_integer()
212 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
351 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() local
354 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat()
[all …]
Dsystem_properties_compat.c64 char value[PROP_VALUE_MAX]; member
97 __LIBC_HIDDEN__ int __system_property_read_compat(const prop_info *_pi, char *name, char *value) in __system_property_read_compat() argument
109 memcpy(value, pi->value, len + 1); in __system_property_read_compat()
/bionic/tests/
Deventfd_test.cpp42 eventfd_t value = 123; in TEST() local
43 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST()
44 ASSERT_EQ(initial_value, value); in TEST()
47 ASSERT_EQ(-1, eventfd_read(fd, &value)); in TEST()
55 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST()
56 ASSERT_EQ(3U, value); in TEST()
Dtime_test.cpp205 volatile int value; member
210 Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) { in Counter()
241 volatile int current_value = value; in ValueUpdated()
243 while (current_value == value && (time(NULL) - start) < 5) { in ValueUpdated()
245 return current_value != value; in ValueUpdated()
248 static void CountNotifyFunction(sigval_t value) { in CountNotifyFunction()
249 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); in CountNotifyFunction()
250 ++cd->value; in CountNotifyFunction()
253 static void CountAndDisarmNotifyFunction(sigval_t value) { in CountAndDisarmNotifyFunction()
254 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); in CountAndDisarmNotifyFunction()
[all …]
Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument
27 std::stringstream ss(value); in CheckOverflow()
30 EXPECT_FALSE(ss.bad()) << value << ' ' << int64_t(result); in CheckOverflow()
31 EXPECT_EQ(should_overflow, ss.fail()) << value << ' ' << int64_t(result); in CheckOverflow()
33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
/bionic/libc/include/sys/
Dxattr.h38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags);
39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags);
40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags);
42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size);
43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size);
44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size);
Dsystem_properties.h47 int __system_property_get(const char *name, char *value);
51 int __system_property_set(const char *key, const char *value);
73 int __system_property_read(const prop_info *pi, char *name, char *value);
D_system_properties.h57 char value[PROP_VALUE_MAX]; member
110 const char *value, unsigned int valuelen);
120 int __system_property_update(prop_info *pi, const char *value, unsigned int len);
138 int __system_property_read_compat(const prop_info *pi, char *name, char *value);
Deventfd.h45 extern int eventfd_read(int fd, eventfd_t* value);
46 extern int eventfd_write(int fd, eventfd_t value);
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dldexp.c27 double value; member
41 double value; member
56 ew_u.value = (d); \
66 gh_u.value = (d); \
75 sh_u.value = (d); \
77 (d) = sh_u.value; \
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_cbrt.c41 double value; in cbrt() member
101 u.value=t; in cbrt()
103 t=u.value; in cbrt()
Dmath_private.h55 double value; member
73 double value; member
92 ew_u.value = (d); \
101 ew_u.value = (d); \
110 gh_u.value = (d); \
119 gl_u.value = (d); \
130 (d) = iw_u.value; \
138 (d) = iw_u.value; \
146 sh_u.value = (d); \
148 (d) = sh_u.value; \
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dsetenv.c91 setenv(const char *name, const char *value, int rewrite) in setenv() argument
108 l_value = strlen(value); in setenv()
115 while ((*C++ = *value++)) in setenv()
146 for (*C++ = '='; (*C++ = *value++); ) in setenv()
/bionic/libc/kernel/uapi/linux/
Dreiserfs_xattr.h31 void *value; member
Dsw_sync.h24 __u32 value; member
/bionic/libc/upstream-netbsd/lib/libc/resolv/
Dmtctxres.c89 __res_destroy_ctx(void *value) { in __res_destroy_ctx() argument
91 mtctxres_t *mt = (mtctxres_t *)value; in __res_destroy_ctx()
/bionic/libc/kernel/tools/
Dcpp.py74 self.value = None
81 self.value = val
83 self.value = id
88 self.value = src.value
94 return "(ident %s)" % self.value
96 return "(number %s)" % self.value
98 return "(string '%s')" % self.value
103 if self.id == tokSPACE and self.value == "\\":
111 return self.value
113 return self.value
[all …]

1234