Searched refs:index (Results 1 - 25 of 1857) sorted by relevance

1234567891011>>

/haiku/src/add-ons/translators/gif/
H A DLoadPalette.cpp34 LoadPalette::ColorForIndex(int index) argument
36 // never index into pal directly - this function is safe
37 if (index >= 0 && index <= size) {
38 if (usetransparent && index == transparentindex)
41 return data[index];
48 LoadPalette::SetColor(int index, uint8 red, uint8 green, uint8 blue) argument
50 if (index < 0 || index > 255)
53 data[index]
[all...]
/haiku/src/system/libroot/os/arch/ppc/
H A Dtls.c30 tls_get(int32 index) argument
32 return gSlots[index];
37 tls_address(int32 index) argument
39 return &gSlots[index];
44 tls_set(int32 index, void *value) argument
46 gSlots[index] = value;
/haiku/src/system/libroot/os/arch/sparc/
H A Dtls.c30 tls_get(int32 index) argument
32 return gSlots[index];
37 tls_address(int32 index) argument
39 return &gSlots[index];
44 tls_set(int32 index, void *value) argument
46 gSlots[index] = value;
/haiku/headers/os/support/
H A DTLS.h24 extern void *tls_get(int32 index);
25 extern void **tls_address(int32 index);
26 extern void tls_set(int32 index, void *value);
/haiku/docs/interface_guidelines/
H A Dconvert.sh6 xmlto $1 index.xml --skip-validation
/haiku/headers/private/kernel/util/
H A DBitmap.h33 inline bool Get(size_t index) const;
34 inline void Set(size_t index);
35 inline void Clear(size_t index);
37 void SetRange(size_t index, size_t count);
38 void ClearRange(size_t index, size_t count);
54 Bitmap::Get(size_t index) const
56 ASSERT(index < fSize);
58 const size_t kArrayElement = index / kBitsPerElement;
59 const addr_t kBitMask = addr_t(1) << (index % kBitsPerElement);
65 Bitmap::Set(size_t index)
[all...]
/haiku/src/system/libroot/posix/stdlib/
H A Dpty.cpp33 int32 index; local
34 if (ioctl(masterFD, B_IOCTL_GET_TTY_INDEX, &index, sizeof(index)) < 0)
41 char(letter + index / 16), index % 16);
/haiku/src/kits/debugger/arch/x86/
H A DCpuStateX86.cpp194 int32 index = reg->Index(); local
195 if (!IsRegisterSet(index))
198 if (index >= X86_XMM_REGISTER_END)
203 _value.SetTo((uint16)fIntRegisters[index]);
205 _value.SetTo(fIntRegisters[index]);
207 index -= X86_REGISTER_ST0;
209 _value.SetTo((float)fFloatRegisters[index]);
211 _value.SetTo(fFloatRegisters[index]);
213 if (index >= X86_REGISTER_MM0 && index < X86_REGISTER_XMM
229 int32 index = reg->Index(); local
278 SetIntRegister(int32 index, uint32 value) argument
301 SetFloatRegister(int32 index, double value) argument
324 SetMMXRegister(int32 index, const uint8* value) argument
348 SetXMMRegister(int32 index, const uint8* value) argument
360 UnsetRegister(int32 index) argument
[all...]
/haiku/src/kits/tracker/
H A DPoseList.cpp47 for (int32 index = 0; index < count; index++) {
48 BPose* pose = ItemAt(index);
52 *resultingIndex = index;
66 for (int32 index = 0; index < count; index++) {
67 BPose* pose = ItemAt(index);
71 *resultingIndex = index;
[all...]
H A DPendingNodeMonitorCache.cpp108 for (int32 index = count - 1; index >= 0; index--)
109 if (fList.ItemAt(index)->Match(nodeRef))
110 delete fList.RemoveItemAt(index);
119 for (int32 index = count - 1; index >= 0; index--)
120 if (fList.ItemAt(index)->TooOld(now)) {
122 delete fList.RemoveItemAt(index);
[all...]
/haiku/headers/private/shared/
H A DArray.h37 inline bool Insert(const Element& element, int32 index);
38 inline bool InsertUninitialized(int32 index, int32 count);
39 inline bool Remove(int32 index, int32 count = 1);
44 inline Element& ElementAt(int32 index);
45 inline const Element& ElementAt(int32 index) const;
47 inline Element& operator[](int32 index);
48 inline const Element& operator[](int32 index) const;
55 bool _Resize(int32 index, int32 delta);
115 Array<Element>::Insert(const Element& element, int32 index) argument
117 if (index <
131 InsertUninitialized(int32 index, int32 count) argument
148 Remove(int32 index, int32 count) argument
199 ElementAt(int32 index) argument
215 operator [](int32 index) argument
246 _Resize(int32 index, int32 delta) argument
[all...]
/haiku/headers/private/app/
H A DServerReadOnlyMemory.h20 // + 1 for index-offset, + 2 for B_SUCCESS_COLOR, B_FAILURE_COLOR
41 index_to_color_which(int32 index) argument
43 if (index >= 0 && index < kColorWhichCount) {
44 if ((color_which)index < kColorWhichCount - 3)
45 return (color_which)(index + 1);
47 return (color_which)(index + B_SUCCESS_COLOR
/haiku/src/system/libroot/os/arch/riscv64/
H A Dtls.cpp46 tls_get(int32 index) argument
48 return get_tls()[index];
53 tls_address(int32 index) argument
55 return get_tls() + index;
60 tls_set(int32 index, void *value) argument
62 get_tls()[index] = value;
/haiku/src/system/libroot/os/arch/arm/
H A Dtls.c43 tls_get(int32 index) argument
45 return get_tls()[index];
50 tls_address(int32 index) argument
52 return get_tls() + index;
57 tls_set(int32 index, void *value) argument
59 get_tls()[index] = value;
/haiku/src/system/libroot/os/arch/m68k/
H A Dtls.c41 tls_get(int32 index) argument
43 return gSlots[index];
48 tls_address(int32 index) argument
50 return &gSlots[index];
55 tls_set(int32 index, void *value) argument
57 gSlots[index] = value;
/haiku/src/add-ons/print/drivers/pcl6/
H A DDeltaRowCompression.h48 // Returns the index where seed row and row differ
50 inline int DiffersIndex(const uchar* row, int index) argument
52 while (index < fSize) {
53 if (fSeedRow[index] != row[index])
54 return index;
55 index ++;
61 // starting at the specified index.
62 inline int DiffersLength(const uchar* row, int index) argument
64 int startIndex = index;
[all...]
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DIndexDirectory.cpp79 // create the index
80 AttributeIndex *index = NULL; local
83 index = new(nothrow) AttributeIndexImpl(fVolume,
87 index = new(nothrow) AttributeIndexImpl(fVolume,
91 index = new(nothrow) AttributeIndexImpl(fVolume,
95 index = new(nothrow) AttributeIndexImpl(fVolume,
99 index = new(nothrow) AttributeIndexImpl(fVolume,
103 index = new(nothrow) AttributeIndexImpl(fVolume,
107 index = new(nothrow) AttributeIndexImpl(fVolume,
114 if (error == B_OK && !index)
141 DeleteIndex(Index *index) argument
162 Index *index = fIndices.ItemAt(i); local
174 Index *index = FindIndex(name); local
[all...]
/haiku/src/kits/interface/textview_support/
H A DLineBuffer.cpp25 BTextView::LineBuffer::InsertLine(STELine* inLine, int32 index) argument
27 InsertItemsAt(1, index, inLine);
32 BTextView::LineBuffer::RemoveLines(int32 index, int32 count) argument
34 RemoveItemsAt(count, index);
57 int32 index = 0; local
60 index = (minIndex + maxIndex) >> 1;
61 if (offset >= fBuffer[index].offset) {
62 if (offset < fBuffer[index + 1].offset)
65 minIndex = index + 1;
67 maxIndex = index;
79 int32 index = 0; local
97 BumpOrigin(float delta, int32 index) argument
105 BumpOffset(int32 delta, int32 index) argument
[all...]
H A DLineBuffer.h31 void InsertLine(STELine* inLine, int32 index);
32 void RemoveLines(int32 index, int32 count = 1);
39 void BumpOrigin(float delta, int32 index);
40 void BumpOffset(int32 delta, int32 index);
44 STELine* operator[](int32 index) const;
56 BTextView::LineBuffer::operator[](int32 index) const
58 return &fBuffer[index];
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DIndirectItem.h45 uint64 BlockNumberAt(int32 index) const
48 if (index >= 0 && index < (int32)CountBlocks())
49 number = le2h(((uint32*)GetData())[index]);
/haiku/src/add-ons/network_settings/dialup/
H A DInterfaceUtils.cpp34 FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index) argument
37 for(; index < menu->CountItems(); index++) {
38 item = menu->ItemAt(index);
40 return index;
43 return index;
50 int32 index = 0; local
52 for(; index < list->CountItems(); index++) {
53 item = static_cast<BStringItem*>(list->ItemAt(index));
[all...]
/haiku/src/bin/
H A Dsetusbconfig.cpp11 printf("usage: %s <device> <configuration index>\n", argv[0]);
21 uint32 index; local
22 if (sscanf(argv[2], "%lu", &index) != 1) {
23 printf("could not parse configuration index\n");
27 const BUSBConfiguration *config = device.ConfigurationAt(index);
29 printf("couldn't get configuration at %lu\n", index);
39 printf("configuration %lu set on device %s\n", index, argv[1]);
/haiku/src/kits/debugger/arch/x86_64/
H A DCpuStateX8664.cpp240 int32 index = reg->Index(); local
241 if (!IsRegisterSet(index))
244 if (index >= X86_64_XMM_REGISTER_END)
249 _value.SetTo((uint16)fIntRegisters[index]);
251 _value.SetTo(fIntRegisters[index]);
253 index -= X86_64_REGISTER_ST0;
255 _value.SetTo((float)fFloatRegisters[index]);
257 _value.SetTo(fFloatRegisters[index]);
259 if (index >= X86_64_REGISTER_MM0 && index < X86_64_REGISTER_XMM
275 int32 index = reg->Index(); local
325 SetIntRegister(int32 index, uint64 value) argument
348 SetFloatRegister(int32 index, double value) argument
371 SetMMXRegister(int32 index, const uint8* value) argument
395 SetXMMRegister(int32 index, const uint8* highValue, const uint8* lowValue) argument
409 UnsetRegister(int32 index) argument
[all...]
/haiku/src/tests/apps/delay_shutdown/
H A DDelayShutdown.cpp30 int32 index = 1; local
32 while (index < argc) {
33 if (strcmp(argv[index], "-d") == 0) {
34 if (index + 1 < argc)
35 fDelay = atoi(argv[++index]);
40 } else if (strcmp(argv[index], "-q") == 0) {
46 index++;
/haiku/src/libs/icon/shape/
H A DVectorPath.h48 virtual void PointAdded(int32 index) = 0;
49 virtual void PointRemoved(int32 index) = 0;
50 virtual void PointChanged(int32 index) = 0;
101 bool AddPoint(BPoint point, int32 index);
103 bool RemovePoint(int32 index);
106 bool SetPoint(int32 index, BPoint point);
107 bool SetPoint(int32 index, BPoint point,
111 bool SetPointIn(int32 index, BPoint point);
112 bool SetPointOut(int32 index, BPoint point,
115 bool SetInOutConnected(int32 index, boo
[all...]

Completed in 365 milliseconds

1234567891011>>