From 669a418f75c05d4a39e2bcaff2b7b93dec1c5764 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 3 Apr 2017 14:51:45 -0400 Subject: Drop FXSYS_ from math methods This Cl drops the FXSYS_ from math methods which are the same on all platforms. Bug: pdfium:694 Change-Id: I85c9ff841fd9095b1434f67319847ba0cd9df7ac Reviewed-on: https://pdfium-review.googlesource.com/3598 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- core/fxcrt/fx_system.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'core/fxcrt/fx_system.h') diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h index d9a352c1d6..c471085e25 100644 --- a/core/fxcrt/fx_system.h +++ b/core/fxcrt/fx_system.h @@ -252,18 +252,6 @@ wchar_t* FXSYS_wcsupr(wchar_t* str); #define FXSYS_pow(a, b) (float)pow(a, b) #endif // _FXM_PLATFORM == _FXM_PLATFORM_WINDOWS_ -#define FXSYS_sqrt(a) (float)sqrt(a) -#define FXSYS_fabs(a) (float)fabs(a) -#define FXSYS_atan2(a, b) (float)atan2(a, b) -#define FXSYS_ceil(a) (float)ceil(a) -#define FXSYS_floor(a) (float)floor(a) -#define FXSYS_cos(a) (float)cos(a) -#define FXSYS_acos(a) (float)acos(a) -#define FXSYS_sin(a) (float)sin(a) -#define FXSYS_log(a) (float)log(a) -#define FXSYS_log10(a) (float)log10(a) -#define FXSYS_fmod(a, b) (float)fmod(a, b) -#define FXSYS_abs abs #define FXDWORD_GET_LSBFIRST(p) \ ((static_cast(p[3]) << 24) | (static_cast(p[2]) << 16) | \ (static_cast(p[1]) << 8) | (static_cast(p[0]))) @@ -277,7 +265,7 @@ int64_t FXSYS_atoi64(const char* str); int64_t FXSYS_wtoi64(const wchar_t* str); const char* FXSYS_i64toa(int64_t value, char* str, int radix); int FXSYS_round(float f); -#define FXSYS_sqrt2(a, b) (float)FXSYS_sqrt((a) * (a) + (b) * (b)) +#define FXSYS_sqrt2(a, b) (float)sqrt((a) * (a) + (b) * (b)) #ifdef __cplusplus }; // extern C #endif // __cplusplus -- cgit v1.2.3