OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Sk64.h" | 8 #include "Sk64.h" |
9 #include "SkMathPriv.h" | 9 #include "SkMathPriv.h" |
10 | 10 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 { | 278 { |
279 sqr -= testDiv; | 279 sqr -= testDiv; |
280 root++; | 280 root++; |
281 } | 281 } |
282 } while (--count >= 0); | 282 } while (--count >= 0); |
283 SkASSERT((int32_t)root >= 0); | 283 SkASSERT((int32_t)root >= 0); |
284 | 284 |
285 return root; | 285 return root; |
286 } | 286 } |
287 | 287 |
| 288 #ifdef SkLONGLONG |
| 289 SkLONGLONG Sk64::getLongLong() const |
| 290 { |
| 291 SkLONGLONG value = fHi; |
| 292 value <<= 32; |
| 293 return value | fLo; |
| 294 } |
| 295 #endif |
OLD | NEW |