Searched refs:ptr (Results 1 - 25 of 247) sorted by relevance

12345678910

/haiku/src/add-ons/accelerants/radeon_hd/atombios/
H A Datom-bits.h28 static inline uint8 get_u8(void *bios, int ptr) argument
30 return ((unsigned char *)bios)[ptr];
32 #define U8(ptr) get_u8(ctx->ctx->bios,(ptr))
33 #define CU8(ptr) get_u8(ctx->bios,(ptr))
34 static inline uint16 get_u16(void *bios, int ptr) argument
36 return get_u8(bios,ptr)|(((uint16)get_u8(bios,ptr+1))<<8);
38 #define U16(ptr) get_u1
40 get_u32(void *bios, int ptr) argument
[all...]
/haiku/src/libs/uuid/
H A Dunpack.c40 const uint8_t *ptr = in; local
43 tmp = *ptr++;
44 tmp = (tmp << 8) | *ptr++;
45 tmp = (tmp << 8) | *ptr++;
46 tmp = (tmp << 8) | *ptr++;
49 tmp = *ptr++;
50 tmp = (tmp << 8) | *ptr++;
53 tmp = *ptr++;
54 tmp = (tmp << 8) | *ptr++;
57 tmp = *ptr
[all...]
/haiku/src/libs/libunwind/ptrace/
H A D_UPT_destroy.c29 _UPT_destroy (void *ptr) argument
31 struct UPT_info *ui = (struct UPT_info *) ptr;
33 free (ptr);
/haiku/src/libs/compat/freebsd_network/compat/machine/
H A Datomic.h12 #define atomic_add_int(ptr, value) \
13 atomic_add((int32 *)(ptr), value)
15 #define atomic_subtract_int(ptr, value) \
16 atomic_add((int32 *)(ptr), -value)
18 #define atomic_load_int(ptr) \
19 atomic_get((int32 *)ptr)
21 #define atomic_set_acq_32(ptr, value) \
22 atomic_set_int(ptr, value)
24 #define atomic_set_int(ptr, value) \
25 atomic_or((int32 *)(ptr), valu
[all...]
/haiku/src/tests/system/network/sock/
H A Dwriten.c10 const char *ptr; local
12 ptr = vptr;
15 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
23 ptr += nwritten;
H A Dpattern.c15 pattern(char *ptr, int len) argument
23 *ptr++ = (c++ & 0x7F);
/haiku/src/apps/cortex/support/
H A Darray_delete.h54 array_delete(C * & ptr) : m_ptr(ptr) {} argument
/haiku/headers/private/kernel/arch/sh4/
H A Drtl8139_priv.h10 void rtl8139_xmit(const char *ptr, int len);
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A Dcpp.h37 inline void operator delete(void *ptr) argument
39 free(ptr);
42 inline void operator delete[](void *ptr) argument
44 free(ptr);
/haiku/src/kits/network/libnetapi/
H A DNetDebug.cpp155 char *ptr; local
158 ptr = text;
162 sprintf(ptr, "%02x ", byte[j]);
164 sprintf(ptr, " ");
165 ptr += 3;
168 strcat(ptr, "| ");
169 ptr += 2;
173 *ptr = byte[j];
175 *ptr = '.';
176 ptr
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dcalloc_test.c13 void *ptr; local
23 ptr = calloc(0, 0);
25 free(ptr);
/haiku/src/bin/
H A Dversion.cpp138 char *ptr = argv[i]; local
139 ++ptr;
141 if (*ptr == '-') {
143 ++ptr;
145 if (*ptr == 'h') {
146 lessEqual = str_less_equal(ptr, "help");
151 } else if (*ptr == 'l') {
152 lessEqual = str_less_equal(ptr, "long");
155 } else if (*ptr == 'n') {
156 lessEqual = str_less_equal(ptr, "numerica
[all...]
H A Dcatarea.c7 char *ptr, *p; local
16 cloned = clone_area("cloned for catarea", (void **)&ptr, B_ANY_ADDRESS, B_READ_AREA, area);
19 write(1, ptr, ai.size);
/haiku/headers/libs/agg/
H A Dagg_pattern_filters_rgba.h78 const color_type* ptr = buf[y_lr] + x_lr; local
82 r += weight * ptr->r;
83 g += weight * ptr->g;
84 b += weight * ptr->b;
85 a += weight * ptr->a;
87 ++ptr;
90 r += weight * ptr->r;
91 g += weight * ptr->g;
92 b += weight * ptr->b;
93 a += weight * ptr
[all...]
/haiku/src/system/libroot/posix/glibc/stdlib/
H A Da64l.c42 const char *ptr = string; local
44 const char *end = ptr + 6;
52 index = *ptr - TABLE_BASE;
58 ++ptr;
62 while (ptr != end);
/haiku/src/system/libroot/os/arch/generic/
H A Dgeneric_atomic.cpp12 atomic_set(int32_t* ptr, int32_t value) argument
14 auto& obj = *reinterpret_cast<std::atomic<int32_t>*>(ptr);
20 atomic_get_and_set(int32_t* ptr, int32_t value) argument
22 auto& obj = *reinterpret_cast<std::atomic<int32_t>*>(ptr);
28 atomic_test_and_set(int32_t* ptr, int32_t desired, int32_t expected) argument
30 auto& obj = *reinterpret_cast<std::atomic<int32_t>*>(ptr);
37 atomic_add(int32_t* ptr, int32_t value) argument
39 auto& obj = *reinterpret_cast<std::atomic<int32_t>*>(ptr);
45 atomic_and(int32_t* ptr, int32_t value) argument
47 auto& obj = *reinterpret_cast<std::atomic<int32_t>*>(ptr);
53 atomic_or(int32_t* ptr, int32_t value) argument
61 atomic_get(int32_t* ptr) argument
69 atomic_set64(int64_t* ptr, int64_t value) argument
77 atomic_get_and_set64(int64_t* ptr, int64_t value) argument
85 atomic_test_and_set64(int64_t* ptr, int64_t desired, int64_t expected) argument
94 atomic_add64(int64_t* ptr, int64_t value) argument
102 atomic_and64(int64_t* ptr, int64_t value) argument
110 atomic_or64(int64_t* ptr, int64_t value) argument
118 atomic_get64(int64_t* ptr) argument
[all...]
/haiku/src/system/libroot/posix/malloc_hoard2/
H A Dthreadheap.h46 inline static size_t objectSize(void *ptr);
91 void *ptr = this->malloc(newSize); local
92 if ((((unsigned long) ptr) & -((long) alignment)) == 0) {
93 // ptr is already aligned, so return it.
94 assert(((unsigned long) ptr % alignment) == 0);
95 return ptr;
97 // Align ptr.
98 char *newptr = (char *)(((unsigned long)ptr + alignment - 1) & -((long)alignment));
102 if ((unsigned long)newptr - (unsigned long)ptr < sizeof(block))
108 block *b = ((block *)ptr
143 objectSize(void *ptr) argument
[all...]
/haiku/src/libs/compat/freebsd_iflib/
H A Dnvpair_impl.h55 const unsigned char *nvpair_unpack(bool isbe, const unsigned char *ptr,
62 unsigned char *nvpair_pack_header(const nvpair_t *nvp, unsigned char *ptr,
64 unsigned char *nvpair_pack_null(const nvpair_t *nvp, unsigned char *ptr,
66 unsigned char *nvpair_pack_bool(const nvpair_t *nvp, unsigned char *ptr,
68 unsigned char *nvpair_pack_number(const nvpair_t *nvp, unsigned char *ptr,
70 unsigned char *nvpair_pack_string(const nvpair_t *nvp, unsigned char *ptr,
72 unsigned char *nvpair_pack_descriptor(const nvpair_t *nvp, unsigned char *ptr,
74 unsigned char *nvpair_pack_binary(const nvpair_t *nvp, unsigned char *ptr,
76 unsigned char *nvpair_pack_nvlist_up(unsigned char *ptr, size_t *leftp);
77 unsigned char *nvpair_pack_bool_array(const nvpair_t *nvp, unsigned char *ptr,
[all...]
/haiku/src/system/libroot/posix/signal/
H A Dset_signal_stack.c16 set_signal_stack(void *ptr, size_t size) argument
21 alternateStack.ss_sp = ptr;
/haiku/src/libs/libc++/
H A Dnew.cpp117 operator delete(void* ptr) _NOEXCEPT
119 if (ptr)
120 ::free(ptr); variable
125 operator delete(void* ptr, const std::nothrow_t&) _NOEXCEPT
127 ::operator delete(ptr); variable
132 operator delete(void* ptr, size_t) _NOEXCEPT
134 ::operator delete(ptr); variable
139 operator delete[] (void* ptr) _NOEXCEPT
141 ::operator delete(ptr); variable
146 operator delete[] (void* ptr, cons
148 ::operator delete[](ptr); variable
155 ::operator delete[](ptr); variable
[all...]
/haiku/src/libs/util/
H A Dfparseln.c85 char *ptr, *cp; local
115 if ((ptr = fgetln(fp, &s)) == NULL)
119 for (cp = ptr; cp < ptr + s; cp++)
120 if (*cp == com && !isescaped(ptr, cp, esc)) {
121 s = cp - ptr;
128 cp = &ptr[s - 1];
135 cp = &ptr[s - 1];
137 if (*cp == con && !isescaped(ptr, cp, esc)) {
152 (void) memcpy(buf + len, ptr,
198 char *ptr; local
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dparsestream.cc85 register char *ptr = buf; local
86 while (ptr < ebuf() && *ptr != '\n') ptr++;
87 _line_length = ptr - buf;
88 setg(buf, buf, ptr);
93 register char* ptr = egptr(); // Point to end of current_line local
95 int i = right() - ptr;
98 ptr++; i--; // Skip '\n'.
99 char *line_start = ptr;
111 char *ptr = eback(); local
153 register char *ptr = base(); local
179 setg(base(), cur_pos, ptr); variable
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Diogetline.c63 char *ptr = buf; variable
82 *ptr++ = c;
87 return ptr - buf;
89 *ptr++ = c;
100 _IO_size_t old_len = ptr-buf;
108 memcpy ((void *) ptr, (void *) fp->_IO_read_ptr, len);
112 memcpy ((void *) ptr, (void *) fp->_IO_read_ptr, len);
114 ptr += len;
118 return ptr - buf;
H A Diogetwline.c66 wchar_t *ptr = buf; local
87 *ptr++ = wc;
90 return ptr - buf;
94 *ptr++ = wc;
105 _IO_size_t old_len = ptr - buf;
113 wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr,
118 wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len);
120 ptr += len;
124 return ptr - buf;
/haiku/src/add-ons/mail_daemon/inbound_filters/match_header/
H A DStringMatcher.cpp36 for (const char * ptr = str; *ptr != '\0'; ptr++)
41 switch(*ptr)
44 pattern += *ptr;
49 pattern += *ptr;
55 switch(*ptr)
63 pattern += *ptr;
81 pattern += *ptr;

Completed in 269 milliseconds

12345678910