Home
last modified time | relevance | path

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

1234

/bionic/libc/private/
Dbionic_macros.h41 #define BIONIC_ALIGN(value, alignment) \ argument
42 (((value) + (alignment) - 1) & ~((alignment) - 1))
44 #define BIONIC_ROUND_UP_POWER_OF_2(value) \ argument
45 (sizeof(value) == 8) \
46 ? (1UL << (64 - __builtin_clzl(static_cast<unsigned long>(value)))) \
47 : (1UL << (32 - __builtin_clz(static_cast<unsigned int>(value))))
Dkernel_sigset_t.h31 kernel_sigset_t(const sigset_t* value) { in kernel_sigset_t() argument
33 set(value); in kernel_sigset_t()
40 void set(const sigset_t* value) { in set() argument
41 bionic = *value; in set()
Dbionic_futex.h43 static inline __always_inline int __futex(volatile void* ftx, int op, int value, const struct times… in __futex() argument
46 int result = syscall(__NR_futex, ftx, op, value, timeout); in __futex()
62 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) { in __futex_wait() argument
63 return __futex(ftx, FUTEX_WAIT, value, timeout); in __futex_wait()
66 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, const struct timespec… in __futex_wait_ex() argument
67 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()
Dfsetxattr.cpp38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) { in fsetxattr() argument
40 int result = ___fsetxattr(fd, name, value, size, flags); in fsetxattr()
58 return setxattr(buf, name, value, size, flags); in fsetxattr()
Dfgetxattr.cpp38 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) { in fgetxattr() argument
40 ssize_t result = ___fgetxattr(fd, name, value, size); in fgetxattr()
58 return getxattr(buf, name, value, size); in fgetxattr()
Dsystem_properties.cpp137 char value[PROP_VALUE_MAX]; member
140 prop_info(const char *name, const uint8_t namelen, const char *value, in prop_info()
145 memcpy(this->value, value, valuelen); in prop_info()
146 this->value[valuelen] = '\0'; in prop_info()
320 const char *value, uint8_t valuelen, uint_least32_t *const off) in new_prop_info() argument
325 prop_info* info = new(p) prop_info(name, namelen, value, valuelen); in new_prop_info()
421 uint8_t namelen, const char *value, uint8_t valuelen, in find_property() argument
470 prop_info* new_info = new_prop_info(name, namelen, value, valuelen, &new_offset); in find_property()
627 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read() argument
630 return __system_property_read_compat(pi, name, value); in __system_property_read()
[all …]
Dsigqueue.cpp36 int sigqueue(pid_t pid, int signo, const sigval value) { in sigqueue() argument
43 info.si_value = value; in sigqueue()
Dlibc_logging.cpp162 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
167 while (value) { in format_unsigned()
168 unsigned d = value % base; in format_unsigned()
169 value /= base; in format_unsigned()
198 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument
209 if (is_signed && static_cast<int64_t>(value) < 0) { in format_integer()
213 value = static_cast<uint64_t>(-static_cast<int64_t>(value)); in format_integer()
215 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
354 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() local
357 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()
Dbionic_systrace.cpp67 char value[PROP_VALUE_MAX]; in should_trace() local
68 __system_property_read(g_pinfo, 0, value); in should_trace()
69 g_tags = strtoull(value, NULL, 0); in should_trace()
/bionic/tools/relocation_packer/src/
Dsleb128.cc48 void Sleb128Encoder<uint_t>::Enqueue(uint_t value) { in Enqueue() argument
50 static const size_t size = CHAR_BIT * sizeof(value); in Enqueue()
53 const bool negative = static_cast<int_t>(value) < 0; in Enqueue()
56 uint8_t byte = value & 127; in Enqueue()
57 value >>= 7; in Enqueue()
61 value |= -(static_cast<uint_t>(1) << (size - 7)); in Enqueue()
65 if ((value == 0 && !sign_bit) || (value == static_cast<uint_t>(-1) && sign_bit)) in Enqueue()
97 uint_t value = 0; in Dequeue() local
98 static const size_t size = CHAR_BIT * sizeof(value); in Dequeue()
106 value |= (static_cast<uint_t>(byte & 127) << shift); in Dequeue()
[all …]
/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()
Dsetjmp_test.cpp23 int value; in TEST() local
25 if ((value = setjmp(jb)) == 0) { in TEST()
29 ASSERT_EQ(123, value); in TEST()
34 int value; in TEST() local
36 if ((value = _setjmp(jb)) == 0) { in TEST()
40 ASSERT_EQ(456, value); in TEST()
45 int value; in TEST() local
47 if ((value = sigsetjmp(jb, 0)) == 0) { in TEST()
51 ASSERT_EQ(789, value); in TEST()
56 int value; in TEST() local
[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()
Dtime_test.cpp234 std::atomic<int> value; member
246 Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) { in Counter()
266 return value; in Value()
274 int current_value = value; in ValueUpdated()
276 while (current_value == value && (time(NULL) - start) < 5) { in ValueUpdated()
278 return current_value != value; in ValueUpdated()
281 static void CountNotifyFunction(sigval_t value) { in CountNotifyFunction()
282 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); in CountNotifyFunction()
283 ++cd->value; in CountNotifyFunction()
286 static void CountAndDisarmNotifyFunction(sigval_t value) { in CountAndDisarmNotifyFunction()
[all …]
/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
133 const char *value, unsigned int valuelen);
143 int __system_property_update(prop_info *pi, const char *value, unsigned int len);
161 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/linker/
Dlinker_sleb128.h31 size_t value = 0; in pop_front() local
32 static const size_t size = CHAR_BIT * sizeof(value); in pop_front()
42 value |= (static_cast<size_t>(byte & 127) << shift); in pop_front()
47 value |= -(static_cast<size_t>(1) << shift); in pop_front()
50 return value; in pop_front()
/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/benchmarks/
Dutils.cpp41 std::string PrettyInt(long value, size_t base) { in PrettyInt() argument
44 uint64_t count = static_cast<uint64_t>(value); in PrettyInt()
46 if (value < 0) { in PrettyInt()
48 count = static_cast<uint64_t>(-value); in PrettyInt()
Dmath_benchmark.cpp69 void BM_math_isinf::Run(int iters, double value) { in Run() argument
73 v = value; in Run()
126 void BM_math_fpclassify::Run(int iters, double value) { in Run() argument
130 v = value; in Run()

1234