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 #ifndef _FX_ALGORITHM | 7 #ifndef _FX_ALGORITHM |
8 #define _FX_ALGORITHM | 8 #define _FX_ALGORITHM |
9 #define FX_IsOdd(a) ((a)&1) | 9 #define FX_IsOdd(a) ((a)&1) |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 27 matching lines...) Expand all Loading... |
38 } else if (find < v) { | 38 } else if (find < v) { |
39 iEnd = iMid - 1; | 39 iEnd = iMid - 1; |
40 } else { | 40 } else { |
41 iStart = iMid + 1; | 41 iStart = iMid + 1; |
42 } | 42 } |
43 } while (iStart <= iEnd); | 43 } while (iStart <= iEnd); |
44 return -1; | 44 return -1; |
45 } | 45 } |
46 }; | 46 }; |
47 #endif | 47 #endif |
OLD | NEW |