Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Side by Side Diff: core/include/fxcrt/fx_system.h

Issue 1783023002: Re-enable MSVC warning 4800 for compiling with chromium_code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove cast change on security_handler file Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fxcrt/fx_string.h ('k') | core/include/fxge/fx_ge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
8 #define CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 8 #define CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
9 9
10 #include <assert.h> 10 #include <assert.h>
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 #define FXSYS_acos(a) (FX_FLOAT) acos(a) 251 #define FXSYS_acos(a) (FX_FLOAT) acos(a)
252 #define FXSYS_sin(a) (FX_FLOAT) sin(a) 252 #define FXSYS_sin(a) (FX_FLOAT) sin(a)
253 #define FXSYS_log(a) (FX_FLOAT) log(a) 253 #define FXSYS_log(a) (FX_FLOAT) log(a)
254 #define FXSYS_log10(a) (FX_FLOAT) log10(a) 254 #define FXSYS_log10(a) (FX_FLOAT) log10(a)
255 #define FXSYS_fmod(a, b) (FX_FLOAT) fmod(a, b) 255 #define FXSYS_fmod(a, b) (FX_FLOAT) fmod(a, b)
256 #define FXSYS_abs abs 256 #define FXSYS_abs abs
257 #define FXDWORD_FROM_LSBFIRST(i) (i) 257 #define FXDWORD_FROM_LSBFIRST(i) (i)
258 #define FXDWORD_FROM_MSBFIRST(i) \ 258 #define FXDWORD_FROM_MSBFIRST(i) \
259 (((uint8_t)(i) << 24) | ((uint8_t)((i) >> 8) << 16) | \ 259 (((uint8_t)(i) << 24) | ((uint8_t)((i) >> 8) << 16) | \
260 ((uint8_t)((i) >> 16) << 8) | (uint8_t)((i) >> 24)) 260 ((uint8_t)((i) >> 16) << 8) | (uint8_t)((i) >> 24))
261 #define FXDWORD_GET_LSBFIRST(p) \ 261 #define FXDWORD_GET_LSBFIRST(p) \
262 ((p[3] << 24) | (p[2] << 16) | (p[1] << 8) | (p[0])) 262 ((static_cast<FX_DWORD>(p[3]) << 24) | (static_cast<FX_DWORD>(p[2]) << 16) | \
263 #define FXDWORD_GET_MSBFIRST(p) \ 263 (static_cast<FX_DWORD>(p[1]) << 8) | (static_cast<FX_DWORD>(p[0])))
264 ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3])) 264 #define FXDWORD_GET_MSBFIRST(p) \
265 ((static_cast<FX_DWORD>(p[0]) << 24) | (static_cast<FX_DWORD>(p[1]) << 16) | \
266 (static_cast<FX_DWORD>(p[2]) << 8) | (static_cast<FX_DWORD>(p[3])))
265 #define FXSYS_HIBYTE(word) ((uint8_t)((word) >> 8)) 267 #define FXSYS_HIBYTE(word) ((uint8_t)((word) >> 8))
266 #define FXSYS_LOBYTE(word) ((uint8_t)(word)) 268 #define FXSYS_LOBYTE(word) ((uint8_t)(word))
267 #define FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16)) 269 #define FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16))
268 #define FXSYS_LOWORD(dword) ((FX_WORD)(dword)) 270 #define FXSYS_LOWORD(dword) ((FX_WORD)(dword))
269 int32_t FXSYS_atoi(const FX_CHAR* str); 271 int32_t FXSYS_atoi(const FX_CHAR* str);
270 uint32_t FXSYS_atoui(const FX_CHAR* str); 272 uint32_t FXSYS_atoui(const FX_CHAR* str);
271 int32_t FXSYS_wtoi(const FX_WCHAR* str); 273 int32_t FXSYS_wtoi(const FX_WCHAR* str);
272 int64_t FXSYS_atoi64(const FX_CHAR* str); 274 int64_t FXSYS_atoi64(const FX_CHAR* str);
273 int64_t FXSYS_wtoi64(const FX_WCHAR* str); 275 int64_t FXSYS_wtoi64(const FX_WCHAR* str);
274 const FX_CHAR* FXSYS_i64toa(int64_t value, FX_CHAR* str, int radix); 276 const FX_CHAR* FXSYS_i64toa(int64_t value, FX_CHAR* str, int radix);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 312
311 // Prevent a function from ever being inlined, typically because we'd 313 // Prevent a function from ever being inlined, typically because we'd
312 // like it to appear in stack traces. 314 // like it to appear in stack traces.
313 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 315 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
314 #define NEVER_INLINE __declspec(noinline) 316 #define NEVER_INLINE __declspec(noinline)
315 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 317 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
316 #define NEVER_INLINE __attribute__((__noinline__)) 318 #define NEVER_INLINE __attribute__((__noinline__))
317 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 319 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
318 320
319 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 321 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_string.h ('k') | core/include/fxge/fx_ge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698