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

Unified Diff: runtime/vm/assembler_ia32.h

Issue 11573044: Inline Doubles truncate and round. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32.h
===================================================================
--- runtime/vm/assembler_ia32.h (revision 16975)
+++ runtime/vm/assembler_ia32.h (working copy)
@@ -400,6 +400,14 @@
void pxor(XmmRegister dst, XmmRegister src);
+ enum RoundingMode {
+ kRoundToNearest = 0x0,
+ kRoundDown = 0x1,
+ kRoundUp = 0x2,
+ kRoundToZero = 0x3
+ };
+ void roundsd(XmmRegister dst, XmmRegister src, RoundingMode mode);
+
void flds(const Address& src);
void fstps(const Address& dst);
@@ -561,6 +569,7 @@
void FloatNegate(XmmRegister f);
void DoubleAbs(XmmRegister reg);
+ void DoubleRound(XmmRegister dst, XmmRegister src, XmmRegister tmp);
void LockCmpxchgl(const Address& address, Register reg) {
lock();
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698