From 6302288dec6111120749754ba8ec2d249b63404b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 25 Apr 2017 10:29:58 -0700 Subject: Rename core/fxcrt/fx_basic_coords.cpp to fx_coordinates.cpp Its contents are delcared in fx_coordinates.h Remove unused GetIntersection(). Move FXSYS_round to fx_system.cpp. Change-Id: I70749581d1321dd919e35fa2daab9591098f68e9 Reviewed-on: https://pdfium-review.googlesource.com/4479 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- core/fxcrt/fx_system.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/fxcrt/fx_system.cpp') diff --git a/core/fxcrt/fx_system.cpp b/core/fxcrt/fx_system.cpp index d2b04f502a..cf1c7e5920 100644 --- a/core/fxcrt/fx_system.cpp +++ b/core/fxcrt/fx_system.cpp @@ -6,6 +6,16 @@ #include "core/fxcrt/fx_system.h" +#include + +extern "C" int FXSYS_round(float d) { + if (d < static_cast(std::numeric_limits::min())) + return std::numeric_limits::min(); + if (d > static_cast(std::numeric_limits::max())) + return std::numeric_limits::max(); + return static_cast(round(d)); +} + #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ size_t FXSYS_wcsftime(wchar_t* strDest, -- cgit v1.2.3