Searched refs:floor (Results 1 - 25 of 56) sorted by last modified time

123

/haiku/src/kits/tracker/
H A DTitleView.cpp483 float baseline = floor(bounds.top + fontHeight.ascent
/haiku/src/servers/app/
H A DServerWindow.cpp482 info.window_left = (int)floor(fWindow->Frame().left);
483 info.window_top = (int)floor(fWindow->Frame().top);
484 info.window_right = (int)floor(fWindow->Frame().right);
485 info.window_bottom = (int)floor(fWindow->Frame().bottom);
/haiku/src/kits/interface/
H A DColumnListView.cpp1639 float baseline = floor(rect.top + fh.ascent
2674 float baseline = floor(drawRect.top + fh.ascent
2737 upperLeft.y = baseline - bmh + floor((fh.ascent + fh.descent - bmh) / 2);
3419 float baseline = floor(fieldRect.top + fh.ascent
3456 float baseline = floor(destRect.top + fh.ascent
3608 float baseline = floor(destRect.top + fh.ascent
H A DDecimalSpinner.cpp22 return floor(value * pow(10.0, n) + 0.5) / pow(10.0, n);
H A DSeparatorItem.cpp99 const float startLeft = bounds.left + (floor(bounds.Width())) / 2;
107 const float startTop = bounds.top + (floor(bounds.Height())) / 2;
/haiku/src/libs/icon/style/
H A DGradientTransformable.cpp483 c[0] = kInverseGammaTable[(uint16)floor(fromBlue * f + toBlue * t + 0.5)];
484 c[1] = kInverseGammaTable[(uint16)floor(fromGreen * f + toGreen * t + 0.5)];
485 c[2] = kInverseGammaTable[(uint16)floor(fromRed * f + toRed * t + 0.5)];
486 c[3] = (uint8)floor(from->color.alpha * f + to->color.alpha * t + 0.5);
495 c[0] = (uint8)floor(from->color.red * f + to->color.red * t + 0.5);
496 c[1] = (uint8)floor(from->color.green * f + to->color.green * t + 0.5);
497 c[2] = (uint8)floor(from->color.blue * f + to->color.blue * t + 0.5);
498 c[3] = (uint8)floor(from->color.alpha * f + to->color.alpha * t + 0.5);
/haiku/src/libs/icon/
H A DIconRenderer.cpp388 *x = floor(*x + 0.5);
389 *y = floor(*y + 0.5);
/haiku/src/apps/serialconnect/
H A DTermView.cpp367 rect.start_col = (int)floor(pixels.left / fFontWidth);
369 rect.start_row = (int)floor(pixels.top / fFontHeight);
/haiku/src/apps/cortex/ValControl/
H A DNumericValControl.cpp208 (int64)floor(minValue * factor) :
212 (int64)floor(maxValue * factor) :
/haiku/src/kits/interface/layouter/
H A DSimpleLayouter.cpp17 # define lround(x) (long)floor((x) + 0.5)
H A DComplexLayouter.cpp437 // The basic strategy is to floor() the sums. This guarantees that the
438 // difference between two rounded sums remains in the range of floor()
448 double roundedRealSum = floor(realSum);
/haiku/src/tests/libs/icon/flat_icon/
H A DFlatIconFormat.py28 exponent = math.floor(math.log2(abs(value)))
37 return (sign << 23) + ((exponent+32) << 17) + math.floor(mantissa * 2 ** 17)
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs_legacy.c1671 void floor() {} function
H A Dlibroot_stubs.c1726 void floor() {} function
/haiku/headers/posix/
H A Dmath.h215 extern double floor(double x);
/haiku/src/servers/app/font/
H A DFontEngine.cpp570 fBounds.x1 = int(floor(bounds.x1));
571 fBounds.y1 = int(floor(bounds.y1));
/haiku/src/servers/app/decorator/
H A DTabDecorator.cpp797 float delta = floor(location - tab->tabOffset);
/haiku/src/kits/shared/
H A DExpressionParser.cpp669 } else if (strcasecmp("floor", token.string.String()) == 0) {
671 return _ParseFactorial(values[0].floor());
/haiku/src/tests/kits/interface/bregion/
H A DRegionTestcase.cpp145 pointArray[numPoints].Set(floor(xCoord), floor(yCoord));
/haiku/src/apps/cortex/addons/Flanger/
H A DFlangerNode.cpp1478 int32 readFrameLo = (int32)floor(fReadFrame);
/haiku/src/apps/cortex/MediaRoutingView/
H A DMediaRoutingView.cpp1833 float bigStep = floor(MediaNodePanel::M_DEFAULT_WIDTH + M_CLEANUP_H_GAP);
1834 scrollBar->SetSteps(floor(bigStep / 10.0), bigStep);
1840 float bigStep = floor(MediaNodePanel::M_DEFAULT_HEIGHT + M_CLEANUP_V_GAP);
1841 scrollBar->SetSteps(floor(bigStep / 10.0), bigStep);
/haiku/src/apps/mandelbrot/
H A DFractalEngine.cpp260 // floor(height/2)*2 = height-height%2.
477 return static_cast<int32>(floor(4 * log(4 / closest)));
479 return static_cast<int32>(floor(4 * log(4 / closest)));
/haiku/src/apps/softwareupdater/
H A DSoftwareUpdaterWindow.cpp909 float offsetMarginHeight = floor((Height() - iconSize) / 2);
/haiku/src/apps/sudoku/
H A DSudokuView.cpp1090 hintX = (uint32)floor((where.x - leftTop.x) / fHintWidth);
1091 hintY = (uint32)floor((where.y - leftTop.y) / fHintHeight);
1104 x = (uint32)floor(where.x / block);
1105 uint32 offsetX = (uint32)floor((where.x - x * block) / fWidth);
1109 y = (uint32)floor(where.y / block);
1110 uint32 offsetY = (uint32)floor((where.y - y * block) / fHeight);
/haiku/src/system/libroot/posix/musl/math/x86/
H A Dtruncl.s1 # see floor.s

Completed in 286 milliseconds

123