| OLD | NEW |
| 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 #include "core/fxcrt/include/fx_basic.h" | 7 #include "core/fxcrt/fx_basic.h" |
| 8 #include "core/fxcrt/include/fx_ext.h" | 8 #include "core/fxcrt/fx_ext.h" |
| 9 | 9 |
| 10 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 10 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 11 #include <dirent.h> | 11 #include <dirent.h> |
| 12 #include <sys/types.h> | 12 #include <sys/types.h> |
| 13 #else | 13 #else |
| 14 #include <direct.h> | 14 #include <direct.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include <algorithm> | 17 #include <algorithm> |
| 18 #include <cctype> | 18 #include <cctype> |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 dstShift -= 8; | 335 dstShift -= 8; |
| 336 result |= *dataPtr++ << dstShift; | 336 result |= *dataPtr++ << dstShift; |
| 337 } | 337 } |
| 338 if (dstShift > 0) { | 338 if (dstShift > 0) { |
| 339 bitShift = 8 - dstShift; | 339 bitShift = 8 - dstShift; |
| 340 bitMask = (1 << dstShift) - 1; | 340 bitMask = (1 << dstShift) - 1; |
| 341 result |= *dataPtr++ >> bitShift & bitMask; | 341 result |= *dataPtr++ >> bitShift & bitMask; |
| 342 } | 342 } |
| 343 return result; | 343 return result; |
| 344 } | 344 } |
| OLD | NEW |