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

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

Issue 1425023003: Fix / simplify CFX_FolderFontInfo::GetFontData() behavior. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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 | « no previous file | core/src/fxge/ge/fx_ge_fontmap.cpp » ('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 ((((uint8_t*)(p))[3] << 24) | (((uint8_t*)(p))[2] << 16) | \ 262 ((p[3] << 24) | (p[2] << 16) | (p[1] << 8) | (p[0]))
263 (((uint8_t*)(p))[1] << 8) | (((uint8_t*)(p))[0])) 263 #define FXDWORD_GET_MSBFIRST(p) \
264 #define FXDWORD_GET_MSBFIRST(p) \ 264 ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3]))
265 ((((uint8_t*)(p))[0] << 24) | (((uint8_t*)(p))[1] << 16) | \
266 (((uint8_t*)(p))[2] << 8) | (((uint8_t*)(p))[3]))
267 #define FXSYS_HIBYTE(word) ((uint8_t)((word) >> 8)) 265 #define FXSYS_HIBYTE(word) ((uint8_t)((word) >> 8))
268 #define FXSYS_LOBYTE(word) ((uint8_t)(word)) 266 #define FXSYS_LOBYTE(word) ((uint8_t)(word))
269 #define FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16)) 267 #define FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16))
270 #define FXSYS_LOWORD(dword) ((FX_WORD)(dword)) 268 #define FXSYS_LOWORD(dword) ((FX_WORD)(dword))
271 int32_t FXSYS_atoi(const FX_CHAR* str); 269 int32_t FXSYS_atoi(const FX_CHAR* str);
272 int32_t FXSYS_wtoi(const FX_WCHAR* str); 270 int32_t FXSYS_wtoi(const FX_WCHAR* str);
273 int64_t FXSYS_atoi64(const FX_CHAR* str); 271 int64_t FXSYS_atoi64(const FX_CHAR* str);
274 int64_t FXSYS_wtoi64(const FX_WCHAR* str); 272 int64_t FXSYS_wtoi64(const FX_WCHAR* str);
275 const FX_CHAR* FXSYS_i64toa(int64_t value, FX_CHAR* str, int radix); 273 const FX_CHAR* FXSYS_i64toa(int64_t value, FX_CHAR* str, int radix);
276 int FXSYS_round(FX_FLOAT f); 274 int FXSYS_round(FX_FLOAT f);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 312
315 // Prevent a function from ever being inlined, typically because we'd 313 // Prevent a function from ever being inlined, typically because we'd
316 // like it to appear in stack traces. 314 // like it to appear in stack traces.
317 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 315 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
318 #define NEVER_INLINE __declspec(noinline) 316 #define NEVER_INLINE __declspec(noinline)
319 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 317 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
320 #define NEVER_INLINE __attribute__((__noinline__)) 318 #define NEVER_INLINE __attribute__((__noinline__))
321 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 319 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
322 320
323 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 321 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698