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

Side by Side Diff: runtime/lib/simd128.cc

Issue 137893029: Add LL suffix to 64-bit integer constants (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | no next file » | 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/bootstrap_natives.h" 5 #include "vm/bootstrap_natives.h"
6 6
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 833
834 834
835 DEFINE_NATIVE_ENTRY(Float64x2_getY, 1) { 835 DEFINE_NATIVE_ENTRY(Float64x2_getY, 1) {
836 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0)); 836 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0));
837 return Double::New(self.y()); 837 return Double::New(self.y());
838 } 838 }
839 839
840 840
841 DEFINE_NATIVE_ENTRY(Float64x2_getSignMask, 1) { 841 DEFINE_NATIVE_ENTRY(Float64x2_getSignMask, 1) {
842 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0)); 842 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0));
843 uint32_t mx = (bit_cast<uint64_t>(self.x()) & 0x8000000000000000) >> 63; 843 uint32_t mx = (bit_cast<uint64_t>(self.x()) & 0x8000000000000000LL) >> 63;
844 uint32_t my = (bit_cast<uint64_t>(self.y()) & 0x8000000000000000) >> 63; 844 uint32_t my = (bit_cast<uint64_t>(self.y()) & 0x8000000000000000LL) >> 63;
845 uint32_t value = mx | (my << 1); 845 uint32_t value = mx | (my << 1);
846 return Integer::New(value); 846 return Integer::New(value);
847 } 847 }
848 848
849 849
850 DEFINE_NATIVE_ENTRY(Float64x2_setX, 2) { 850 DEFINE_NATIVE_ENTRY(Float64x2_setX, 2) {
851 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0)); 851 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0));
852 GET_NON_NULL_NATIVE_ARGUMENT(Double, x, arguments->NativeArgAt(1)); 852 GET_NON_NULL_NATIVE_ARGUMENT(Double, x, arguments->NativeArgAt(1));
853 double _x = x.value(); 853 double _x = x.value();
854 double _y = self.y(); 854 double _y = self.y();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 887
888 DEFINE_NATIVE_ENTRY(Float64x2_sqrt, 1) { 888 DEFINE_NATIVE_ENTRY(Float64x2_sqrt, 1) {
889 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0)); 889 GET_NON_NULL_NATIVE_ARGUMENT(Float64x2, self, arguments->NativeArgAt(0));
890 double _x = sqrt(self.x()); 890 double _x = sqrt(self.x());
891 double _y = sqrt(self.y()); 891 double _y = sqrt(self.y());
892 return Float64x2::New(_x, _y); 892 return Float64x2::New(_x, _y);
893 } 893 }
894 894
895 } // namespace dart 895 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698