| OLD | NEW |
| 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | 5 |
| 6 #include "primpl.h" | 6 #include "prlong.h" |
| 7 | 7 |
| 8 static PRInt64 ll_zero = LL_INIT( 0x00000000,0x00000000 ); | 8 static PRInt64 ll_zero = LL_INIT( 0x00000000,0x00000000 ); |
| 9 static PRInt64 ll_maxint = LL_INIT( 0x7fffffff, 0xffffffff ); | 9 static PRInt64 ll_maxint = LL_INIT( 0x7fffffff, 0xffffffff ); |
| 10 static PRInt64 ll_minint = LL_INIT( 0x80000000, 0x00000000 ); | 10 static PRInt64 ll_minint = LL_INIT( 0x80000000, 0x00000000 ); |
| 11 static PRUint64 ll_maxuint = LL_INIT( 0xffffffff, 0xffffffff ); | 11 static PRUint64 ll_maxuint = LL_INIT( 0xffffffff, 0xffffffff ); |
| 12 | 12 |
| 13 PR_IMPLEMENT(PRInt64) LL_Zero(void) { return ll_zero; } | 13 PR_IMPLEMENT(PRInt64) LL_Zero(void) { return ll_zero; } |
| 14 PR_IMPLEMENT(PRInt64) LL_MaxInt(void) { return ll_maxint; } | 14 PR_IMPLEMENT(PRInt64) LL_MaxInt(void) { return ll_maxint; } |
| 15 PR_IMPLEMENT(PRInt64) LL_MinInt(void) { return ll_minint; } | 15 PR_IMPLEMENT(PRInt64) LL_MinInt(void) { return ll_minint; } |
| 16 PR_IMPLEMENT(PRUint64) LL_MaxUint(void) { return ll_maxuint; } | 16 PR_IMPLEMENT(PRUint64) LL_MaxUint(void) { return ll_maxuint; } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 230 } |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| 234 if (qp) { | 234 if (qp) { |
| 235 qp->lo = q0; | 235 qp->lo = q0; |
| 236 qp->hi = q1; | 236 qp->hi = q1; |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 #endif /* !HAVE_LONG_LONG */ | 239 #endif /* !HAVE_LONG_LONG */ |
| OLD | NEW |