| 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 <time.h> | 7 #include <time.h> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| 11 #include "../../include/javascript/JavaScript.h" | |
| 12 #include "../../include/javascript/JS_Define.h" | 11 #include "../../include/javascript/JS_Define.h" |
| 13 #include "../../include/javascript/JS_Object.h" | 12 #include "../../include/javascript/JS_Object.h" |
| 14 #include "../../include/javascript/JS_Value.h" | 13 #include "../../include/javascript/JS_Value.h" |
| 15 #include "../../include/javascript/Document.h" | 14 #include "../../include/javascript/Document.h" |
| 16 | 15 |
| 17 static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; | 16 static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; |
| 18 static double GetNan() { | 17 static double GetNan() { |
| 19 return *(double*)g_nan; | 18 return *(double*)g_nan; |
| 20 } | 19 } |
| 21 | 20 |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 return day * 86400000 + time; | 856 return day * 86400000 + time; |
| 858 } | 857 } |
| 859 | 858 |
| 860 bool JS_PortIsNan(double d) { | 859 bool JS_PortIsNan(double d) { |
| 861 return d != d; | 860 return d != d; |
| 862 } | 861 } |
| 863 | 862 |
| 864 double JS_LocalTime(double d) { | 863 double JS_LocalTime(double d) { |
| 865 return JS_GetDateTime() + _getDaylightSavingTA(d); | 864 return JS_GetDateTime() + _getDaylightSavingTA(d); |
| 866 } | 865 } |
| OLD | NEW |