Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/diy-fp.cc

Issue 1163803002: Cosmetic changes to tests to make it easier to concatenate them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix snapshot-external.cc Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/disassembler.cc ('k') | src/dtoa.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project 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 #include <stdint.h> 5 #include <stdint.h>
6 #include "src/base/logging.h" 6 #include "src/base/logging.h"
7 #include "src/diy-fp.h" 7 #include "src/diy-fp.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 15 matching lines...) Expand all
26 uint64_t bd = b * d; 26 uint64_t bd = b * d;
27 uint64_t tmp = (bd >> 32) + (ad & kM32) + (bc & kM32); 27 uint64_t tmp = (bd >> 32) + (ad & kM32) + (bc & kM32);
28 // By adding 1U << 31 to tmp we round the final result. 28 // By adding 1U << 31 to tmp we round the final result.
29 // Halfway cases will be round up. 29 // Halfway cases will be round up.
30 tmp += 1U << 31; 30 tmp += 1U << 31;
31 uint64_t result_f = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32); 31 uint64_t result_f = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
32 e_ += other.e_ + 64; 32 e_ += other.e_ + 64;
33 f_ = result_f; 33 f_ = result_f;
34 } 34 }
35 35
36 } } // namespace v8::internal 36 } // namespace internal
37 } // namespace v8
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/dtoa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698