Home
last modified time | relevance | path

Searched refs:roundf (Results 1 – 25 of 69) sorted by relevance

123

/external/skia/samplecode/
DSampleRegion.cpp20 inline float roundf(float x) { return (x-floor(x))>0.5 ? ceil(x) : floor(x); } in roundf() function
63 dst->fLeft = (int)::roundf(src.fLeft * scale); in scale_rect()
64 dst->fTop = (int)::roundf(src.fTop * scale); in scale_rect()
65 dst->fRight = (int)::roundf(src.fRight * scale); in scale_rect()
66 dst->fBottom = (int)::roundf(src.fBottom * scale); in scale_rect()
/external/llvm/test/Transforms/SimplifyLibCalls/
Dfloat-shrink-compare.ll73 ; CHECK-NEXT: %roundf = call float @roundf(float %x)
74 ; CHECK-NEXT: fcmp oeq float %roundf, %y
157 ; CHECK-NEXT: %roundf = call float @roundf(float %x)
158 ; CHECK-NEXT: fcmp oeq float %roundf, %y
Dwin-math.ll259 ; WIN32-NOT: float @roundf
262 ; WIN64-NOT: float @roundf
265 ; MINGW32: float @roundf
268 ; MINGW64: float @roundf
Dfloor.ll10 ; DO-SIMPLIFY: call float @roundf(
57 ; --> roundf
/external/webkit/Source/WebCore/platform/graphics/wx/
DFontWx.cpp97 …return FloatRect(point.x() + floorf(totalWidth - afterWidth), point.y(), roundf(totalWidth - befor… in selectionRectForComplexText()
100 …return FloatRect(point.x() + floorf(totalWidth - afterWidth), point.y(), roundf(totalWidth - befor… in selectionRectForComplexText()
104 …return FloatRect(point.x() + floorf(beforeWidth), point.y(), roundf(afterWidth) - floorf(beforeWid… in selectionRectForComplexText()
/external/webkit/Source/WebCore/platform/chromium/
DDragImageChromiumMac.cpp59 size_t width = roundf(CGImageGetWidth(image) * scale.width()); in scaleDragImage()
60 size_t height = roundf(CGImageGetHeight(image) * scale.height()); in scaleDragImage()
/external/clang/test/CodeGen/
Dlibcall-declarations.c64 float roundf(float);
85 rint, rintl, rintf, round, roundl, roundf, sin, sinl, sinf, sqrt, sqrtl,
/external/webkit/Source/WebCore/platform/graphics/
DSimpleFontData.cpp101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); in SimpleFontData()
DFloatSize.h148 return IntSize(static_cast<int>(roundf(p.width())), static_cast<int>(roundf(p.height()))); in roundedIntSize()
DFloatPoint.h202 return IntPoint(static_cast<int>(roundf(p.x())), static_cast<int>(roundf(p.y()))); in roundedIntPoint()
/external/webkit/Source/WebCore/css/
DCSSCursorImageValue.cpp95 float x = roundf(cursorElement->x().value(0)); in updateIfSVGCursorIsUsed()
98 float y = roundf(cursorElement->y().value(0)); in updateIfSVGCursorIsUsed()
/external/webkit/Source/JavaScriptCore/wtf/
DMathExtras.h119 static float roundf(float num) in roundf() function
127 inline long long llroundf(float num) { return static_cast<long long>(roundf(num)); } in llroundf()
129 inline long lroundf(float num) { return static_cast<long>(roundf(num)); } in lroundf()
/external/webkit/Source/WebCore/rendering/svg/
DRenderSVGForeignObject.cpp91 setWidth(static_cast<int>(roundf(m_viewport.width()))); in computeLogicalWidth()
97 setHeight(static_cast<int>(roundf(m_viewport.height()))); in computeLogicalHeight()
DRenderSVGRoot.cpp87 return static_cast<int>(roundf(replacedWidth * svg->currentScale())); in computeReplacedLogicalWidth()
98 return static_cast<int>(roundf(replacedHeight * svg->currentScale())); in computeReplacedLogicalHeight()
/external/webkit/Source/WebCore/platform/graphics/win/
DFontWin.cpp66 …return FloatRect(point.x() + floorf(totalWidth - afterWidth), point.y(), roundf(totalWidth - befor… in selectionRectForComplexText()
69 …return FloatRect(point.x() + floorf(beforeWidth), point.y(), roundf(afterWidth) - floorf(beforeWid… in selectionRectForComplexText()
DUniscribeController.cpp298 float roundedAdvance = roundf(advance); in shapeAndPlaceItem()
301 offsetX = roundf(offsetX); in shapeAndPlaceItem()
302 offsetY = roundf(offsetY); in shapeAndPlaceItem()
/external/webkit/Source/WebCore/platform/graphics/mac/
DFontComplexTextMac.cpp53 …return FloatRect(point.x() + floorf(totalWidth - afterWidth), point.y(), roundf(totalWidth - befor… in selectionRectForComplexText()
56 …return FloatRect(point.x() + floorf(beforeWidth), point.y(), roundf(afterWidth) - floorf(beforeWid… in selectionRectForComplexText()
/external/webkit/Source/WebKit2/UIProcess/
DFindIndicator.cpp169 … graphicsContext.translate(FloatSize(roundf(leftBorderThickness), roundf(topBorderThickness))); in draw()
/external/webkit/Source/WebCore/platform/graphics/cg/
DGraphicsContextCG.cpp635 float destinationX = roundf(rect.x() - lineWidth); in strokePath()
636 float destinationY = roundf(rect.y() - lineWidth); in strokePath()
1028 const float destinationX = roundf(rect.x() - lineWidth); in strokeRect()
1029 const float destinationY = roundf(rect.y() - lineWidth); in strokeRect()
1201 deviceOrigin.x = roundf(deviceOrigin.x); in roundToDevicePixels()
1202 deviceOrigin.y = roundf(deviceOrigin.y); in roundToDevicePixels()
1204 deviceLowerRight.x = roundf(deviceLowerRight.x); in roundToDevicePixels()
1205 deviceLowerRight.y = roundf(deviceLowerRight.y); in roundToDevicePixels()
1207 deviceLowerRight.x = deviceOrigin.x + roundf(rect.width() * deviceScaleX); in roundToDevicePixels()
1208 deviceLowerRight.y = deviceOrigin.y + roundf(rect.height() * deviceScaleY); in roundToDevicePixels()
/external/skia/src/core/
DSkUnPreMultiply.cpp74 uint32_t div = roundf(j * 255.0f / i); in SkUnPreMultiply_BuildTable()
/external/webkit/Source/WebCore/rendering/
DRenderEmbeddedObject.cpp176 …float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - t… in paintReplaced()
177 …float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - … in paintReplaced()
/external/webkit/Source/WebKit/efl/ewk/
Dewk_tiled_matrix.c527 new_update.x = roundf(t->zoom * new_update.x); in ewk_tile_matrix_tile_update()
528 new_update.y = roundf(t->zoom * new_update.y); in ewk_tile_matrix_tile_update()
529 new_update.w = roundf(t->zoom * new_update.w); in ewk_tile_matrix_tile_update()
530 new_update.h = roundf(t->zoom * new_update.h); in ewk_tile_matrix_tile_update()
/external/webkit/Source/WebCore/inspector/
DInspectorFrontendClientLocal.cpp161 …return roundf(max(minimumAttachedHeight, min<float>(preferredHeight, totalWindowHeight * maximumAt… in constrainedAttachedWindowHeight()
/external/webkit/Source/WebCore/platform/graphics/filters/
DFETurbulence.cpp306 paintingData.width = roundf(tileWidth * m_baseFrequencyX); in calculateTurbulenceValueForPoint()
308 paintingData.height = roundf(tileHeight * m_baseFrequencyY); in calculateTurbulenceValueForPoint()
/external/webkit/Source/WebCore/platform/graphics/android/context/
DPlatformGraphicsContext.cpp49 return (int)roundf(x); in RoundToInt()
236 int alpha = roundf(m_state->alpha * 256); in getNormalizedAlpha()

123