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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 12082063: Enable correct optimized double modulo operation. (TODO: enable remainder optimization). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 2712
2713 // Use expected function signatures to help MSVC compiler resolve overloading. 2713 // Use expected function signatures to help MSVC compiler resolve overloading.
2714 typedef double (*UnaryMathCFunction) (double x); 2714 typedef double (*UnaryMathCFunction) (double x);
2715 typedef double (*BinaryMathCFunction) (double x, double y); 2715 typedef double (*BinaryMathCFunction) (double x, double y);
2716 2716
2717 extern const RuntimeEntry kPowRuntimeEntry( 2717 extern const RuntimeEntry kPowRuntimeEntry(
2718 "libc_pow", reinterpret_cast<RuntimeFunction>( 2718 "libc_pow", reinterpret_cast<RuntimeFunction>(
2719 static_cast<BinaryMathCFunction>(&pow)), 0, true); 2719 static_cast<BinaryMathCFunction>(&pow)), 0, true);
2720 2720
2721 extern const RuntimeEntry kModRuntimeEntry( 2721 extern const RuntimeEntry kModRuntimeEntry(
2722 "libc_fmod", reinterpret_cast<RuntimeFunction>( 2722 "libc_fmod_ieee", reinterpret_cast<RuntimeFunction>(
2723 static_cast<BinaryMathCFunction>(&fmod)), 0, true); 2723 static_cast<BinaryMathCFunction>(&fmod)), 0, true);
Vyacheslav Egorov (Google) 2013/01/30 01:21:21 How about declaring C function: double modulo(dou
srdjan 2013/01/30 17:25:07 Excellent! Done. On 2013/01/30 01:21:21, Vyachesl
2724 2724
2725 extern const RuntimeEntry kFloorRuntimeEntry( 2725 extern const RuntimeEntry kFloorRuntimeEntry(
2726 "libc_floor", reinterpret_cast<RuntimeFunction>( 2726 "libc_floor", reinterpret_cast<RuntimeFunction>(
2727 static_cast<UnaryMathCFunction>(&floor)), 0, true); 2727 static_cast<UnaryMathCFunction>(&floor)), 0, true);
2728 2728
2729 extern const RuntimeEntry kCeilRuntimeEntry( 2729 extern const RuntimeEntry kCeilRuntimeEntry(
2730 "libc_ceil", reinterpret_cast<RuntimeFunction>( 2730 "libc_ceil", reinterpret_cast<RuntimeFunction>(
2731 static_cast<UnaryMathCFunction>(&ceil)), 0, true); 2731 static_cast<UnaryMathCFunction>(&ceil)), 0, true);
2732 2732
2733 extern const RuntimeEntry kTruncRuntimeEntry( 2733 extern const RuntimeEntry kTruncRuntimeEntry(
(...skipping 22 matching lines...) Expand all
2756 default: 2756 default:
2757 UNREACHABLE(); 2757 UNREACHABLE();
2758 } 2758 }
2759 return kPowRuntimeEntry; 2759 return kPowRuntimeEntry;
2760 } 2760 }
2761 2761
2762 2762
2763 #undef __ 2763 #undef __
2764 2764
2765 } // namespace dart 2765 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698