/haiku/src/servers/app/drawing/Painter/drawing_modes/ |
H A D | DrawingModeAddSUBPIX.h | 21 uint8 rt = min_c(255, _p.data8[2] + (r)); \ 22 uint8 gt = min_c(255, _p.data8[1] + (g)); \ 23 uint8 bt = min_c(255, _p.data8[0] + (b)); \
|
H A D | DrawingModeAdd.h | 20 uint8 rt = min_c(255, _p.data8[2] + (r)); \ 21 uint8 gt = min_c(255, _p.data8[1] + (g)); \ 22 uint8 bt = min_c(255, _p.data8[0] + (b)); \ 31 d[0] = min_c(255, _p.data8[0] + (b)); \ 32 d[1] = min_c(255, _p.data8[1] + (g)); \ 33 d[2] = min_c(255, _p.data8[2] + (r)); \
|
/haiku/src/apps/icon-o-matic/generic/support/ |
H A D | support.h | 44 return max_c(0, min_c(255, value)); 102 return min_c(a, min_c(b, min_c(c, d))); 114 return min_c(min4(v1, v2, v3, v4), v5);
|
/haiku/src/system/boot/platform/generic/ |
H A D | video_splash.cpp | 91 addr_t size = min_c(gKernelArgs.frame_buffer.width 139 int width = min_c(kSplashLogoWidth, gKernelArgs.frame_buffer.width); 140 int height = min_c(kSplashLogoHeight + iconsHalfHeight, 142 int placementX = max_c(0, min_c(100, kSplashLogoPlacementX)); 143 int placementY = max_c(0, min_c(100, kSplashLogoPlacementY)); 148 height = min_c(kSplashLogoHeight, gKernelArgs.frame_buffer.height); 191 width = min_c(kSplashIconsWidth, gKernelArgs.frame_buffer.width); 192 height = min_c(kSplashLogoHeight + iconsHalfHeight, 194 placementX = max_c(0, min_c(100, kSplashIconsPlacementX)); 195 placementY = max_c(0, min_c(10 [all...] |
/haiku/src/kits/interface/layouter/ |
H A D | OneElementLayouter.cpp | 51 fMax = min_c(fMax, max); 55 fPreferred = min_c(fPreferred, fMax);
|
/haiku/src/servers/app/ |
H A D | IntPoint.cpp | 21 x = max_c(min_c(x, r.right), r.left); 22 y = max_c(min_c(y, r.bottom), r.top);
|
H A D | IntRect.cpp | 236 min_c(right, rect.right), min_c(bottom, rect.bottom)); 243 return IntRect(min_c(left, rect.left), min_c(top, rect.top),
|
/haiku/src/system/kernel/util/ |
H A D | hostname.cpp | 48 nameSize = min_c(nameSize, MAXHOSTNAMELEN); 76 nameSize = min_c(nameSize, MAXHOSTNAMELEN);
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | hostname.cpp | 48 nameSize = min_c(nameSize, MAXHOSTNAMELEN); 77 nameSize = min_c(nameSize, MAXHOSTNAMELEN);
|
H A D | link.c | 42 return min_c(linkLen, bufferSize);
|
/haiku/src/system/libnetwork/ |
H A D | init.cpp | 29 __gNetworkStart = (addr_t)min_c(info.text, info.data); 30 __gNetworkEnd = min_c((addr_t)info.text + info.text_size,
|
/haiku/src/tests/add-ons/print/pdf/bezierbounds/ |
H A D | BezierBounds.cpp | 39 bounds.left = min_c(bounds.left, points->x); 41 bounds.top = min_c(bounds.top, points->y);
|
/haiku/src/add-ons/kernel/busses/scsi/virtio/ |
H A D | VirtioSCSIRequest.cpp | 121 size_t senseLength = min_c(sizeof(fCCB->sense), 165 fCCB->data_resid = fCCB->data_length - min_c(min_c(fResponse->sense_len, 184 memcpy(fRequest->cdb, fCCB->cdb, min_c(fCCB->cdb_length, 185 min_c(sizeof(fRequest->cdb), sizeof(fCCB->cdb))));
|
/haiku/src/kits/interface/ |
H A D | CardLayout.cpp | 164 maxHeight = min_c(maxHeight, itemMaxHeight); 165 preferredHeight = min_c(preferredHeight, itemPreferredHeight); 172 preferredHeight = min_c(preferredHeight, maxHeight); 317 fMax.width = min_c(fMax.width, max.width); 318 fMax.height = min_c(fMax.height, max.height); 329 fPreferred.width = min_c(fPreferred.width, fMax.width); 330 fPreferred.height = min_c(fPreferred.height, fMax.height);
|
/haiku/src/system/kernel/arch/generic/ |
H A D | generic_vm_physical_page_ops.cpp | 28 size_t toSet = min_c(length, B_PAGE_SIZE - pageOffset); 51 size_t toCopy = min_c(length, B_PAGE_SIZE - pageOffset); 91 size_t toCopy = min_c(length, B_PAGE_SIZE - pageOffset);
|
/haiku/headers/private/kernel/ |
H A D | load_tracking.h | 36 newLoad = max_c(min_c(newLoad, kMaxLoad), 0);
|
/haiku/src/servers/app/drawing/interface/remote/ |
H A D | StreamingRingBuffer.cpp | 89 size_t copyLength = min_c(length, fBufferSize - fReadPosition); 90 copyLength = min_c(copyLength, fReadable); 157 size_t copyLength = min_c(length, fBufferSize - fWritePosition); 158 copyLength = min_c(copyLength, fBufferSize - fReadable);
|
/haiku/src/add-ons/translators/wonderbrush/support/ |
H A D | support.h | 48 return max_c(0, min_c(255, value));
|
/haiku/headers/private/interface/ |
H A D | clipping.h | 29 rect.left = min_c(r1.left, r2.left); 30 rect.top = min_c(r1.top, r2.top); 48 rect.right = min_c(r1.right, r2.right); 49 rect.bottom = min_c(r1.bottom, r2.bottom);
|
/haiku/src/system/kernel/ |
H A D | boot_splash.cpp | 232 int width = min_c(kSplashIconsWidth, sInfo->width); 233 int height = min_c(kSplashLogoHeight + iconsHalfHeight, sInfo->height); 234 int placementX = max_c(0, min_c(100, kSplashIconsPlacementX)); 235 int placementY = max_c(0, min_c(100, kSplashIconsPlacementY)); 243 height = min_c(iconsHalfHeight, sInfo->height);
|
/haiku/src/kits/support/ |
H A D | BufferedDataIO.cpp | 117 bytesRead = min_c(size, fSize); 154 size_t copy = min_c(size, fSize); 193 size_t toCopy = min_c(size, fBufferSize - (fPosition + fSize));
|
/haiku/src/tests/servers/app/playground/ |
H A D | States.cpp | 122 inset = min_c(inset, -ceilf(fPenSize / 2.0)); 144 return BRect(min_c(fStartPoint.x, fEndPoint.x), 145 min_c(fStartPoint.y, fEndPoint.y), 235 float radius = min_c(r.Width() / 3.0, r.Height() / 3.0);
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | DataStream.cpp | 64 *_length = min_c((cluster - clusterIndex + 1) * kClusterSize - offset,
|
/haiku/src/apps/diskusage/ |
H A D | Scanner.h | 44 { return min_c(1.0, fProgress); }
|
/haiku/src/bin/debug/strace/ |
H A D | Context.cpp | 47 int offset = len - min_c(len, bytes * 2);
|