Searched refs:round (Results 1 - 25 of 28) sorted by relevance

12

/haiku/src/preferences/screen/
H A DUtility.h6 extern float round(float n, int32 max);
H A DUtility.cpp4 float round(float n, int32 max) function
H A DMonitorView.cpp232 fDPI = (int32)round((fWidth / x + fHeight / y) / 2);
H A DScreenMode.cpp404 *_diagonalInches = round(sqrt(info.width * info.width
/haiku/src/system/libroot/posix/musl/math/arm64/
H A Dround.c3 double round(double x) function
/haiku/src/system/libroot/posix/musl/math/
H A Dllround.c5 return round(x);
H A Dlround.c5 return round(x);
H A Dround.c10 double round(double x) function
H A Droundl.c6 return round(x);
/haiku/src/apps/icon-o-matic/generic/gui/panel/color_picker/
H A DColorField.cpp24 #define round(x) (int)(x +.5) macro
239 G = round(fMarkerPosition.x / width * 255.0);
240 B = round(255.0 - fMarkerPosition.y / height * 255.0);
244 R = round(fMarkerPosition.x / width * 255.0);
246 B = round(255.0 - fMarkerPosition.y / height * 255.0);
250 R = round(fMarkerPosition.x / width * 255.0);
251 G = round(255.0 - fMarkerPosition.y / height * 255.0);
279 rgb_color color = { (uint8)round(R), (uint8)round(G), (uint8)round(
[all...]
H A DColorPickerView.cpp34 #define round(x) (int)(x+.5) macro
295 rgb_color color = { (uint8)round(r * 255), (uint8)round(g * 255),
296 (uint8)round(b * 255), 255 };
401 color.red = (uint8)round(r * 255.0);
402 color.green = (uint8)round(g * 255.0);
403 color.blue = (uint8)round(b * 255.0);
464 updateRequired |= _SetTextControlValue(0, round(h * 60));
465 updateRequired |= _SetTextControlValue(1, round(s * 100));
466 updateRequired |= _SetTextControlValue(2, round(
[all...]
H A DColorSlider.cpp25 #define round(x) (int)(x+.5) macro
284 G = round(fFixedValue1 * 255.0);
285 B = round(fFixedValue2 * 255.0);
289 R = round(fFixedValue1 * 255.0);
291 B = round(fFixedValue2 * 255.0);
295 R = round(fFixedValue1 * 255.0);
296 G = round(fFixedValue2 * 255.0);
326 rgb_color color = { (uint8)round(R), (uint8)round(G), (uint8)round(
[all...]
/haiku/src/add-ons/accelerants/common/
H A Dvalidate_display_mode.cpp27 round(uint16 value, uint16 resolution) function
77 syncEnd = round(syncStart + syncLength, constraints.resolution);
78 syncStart = round(syncStart, constraints.resolution);
79 display = round(display, constraints.resolution);
80 total = round(total, constraints.resolution);
/haiku/src/libs/alm/
H A DArea.cpp462 return BRect(round(fLeft->Value()), round(fTop->Value()),
463 round(fRight->Value()), round(fBottom->Value()));
/haiku/src/system/libroot/posix/musl/crypt/
H A Dcrypt_des.c696 unsigned int shifts, round, i, ibit; local
727 for (round = 0; round < 16; round++) {
731 shifts += key_shifts[round];
746 ekey->l[round] = kl;
747 ekey->r[round] = kr;
776 * Do each round.
778 unsigned int round = 16; local
782 while (round
[all...]
/haiku/src/system/libroot/posix/glibc/math/bits/
H A Dmathcalls.h293 __MATHCALL (round,, (_Mdouble_ __x));
/haiku/src/servers/app/drawing/Painter/
H A DPainter.h178 // round rects
256 float _Align(float coord, bool round,
258 void _Align(BPoint* point, bool round,
H A DPainter.cpp1520 Painter::_Align(float coord, bool round, bool centerOffset) const argument
1523 if (round)
1544 Painter::_Align(BPoint* point, bool round, bool centerOffset) const argument
1546 point->x = _Align(point->x, round, centerOffset);
1547 point->y = _Align(point->y, round, centerOffset);
/haiku/src/servers/app/stackandtile/
H A DSATGroup.cpp526 float deltaToX = round(frameSAT.left - frame.left);
527 float deltaToY = round(frameSAT.top - frame.top);
529 float deltaByX = round(frameSAT.right - frame.right);
530 float deltaByY = round(frameSAT.bottom - frame.bottom);
/haiku/src/apps/diskprobe/
H A DProbeView.cpp733 // round to block size
747 bool round = true; local
760 if (message->FindBool("fPositionControl", &round)
764 } else if (message->FindBool("fOffsetControl", &round)
768 } else if (message->FindBool("fFileOffsetControl", &round)
781 if (round)
783 // round to block size
/haiku/headers/posix/
H A Dmath.h244 extern double round(double x);
/haiku/src/servers/app/
H A DWindow.cpp756 // the message to initiate the next update round.
2174 float deltaToX = round(ownFrame.left - frame.left);
2175 float deltaToY = round(ownFrame.top - frame.top);
2177 float deltaByX = round(ownFrame.right - frame.right);
2178 float deltaByY = round(ownFrame.bottom - frame.bottom);
/haiku/src/apps/aboutsystem/
H A DAboutSystem.cpp2259 return (int)round(sysInfo->ignored_pages * B_PAGE_SIZE / 1048576.0);
2266 return (int)round(sysInfo->max_pages * B_PAGE_SIZE / 1048576.0);
2280 return (int)round(sysInfo->used_pages * B_PAGE_SIZE / 1048576.0);
/haiku/headers/libs/mapm/
H A Dm_apm.h528 MAPM round(int toDigits) const function in class:MAPM
/haiku/src/tools/html5_remote_desktop/
H A DHaikuRemoteDesktop.js1154 this.lineCap = 'round';
1169 this.lineJoin = 'round';
1402 var centerX = Math.round(rect.centerX());
1403 var centerY = Math.round(rect.centerY());
1491 console.warn('round rects not implemented, falling back to rect');

Completed in 266 milliseconds

12