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

Side by Side Diff: Source/platform/Decimal.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/platform/DateTimeChooserClient.cpp ('k') | Source/platform/Decimal.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef Decimal_h 31 #ifndef Decimal_h
32 #define Decimal_h 32 #define Decimal_h
33 33
34 #include "platform/PlatformExport.h" 34 #include "platform/PlatformExport.h"
35 #include "wtf/Assertions.h" 35 #include "wtf/Assertions.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 #include <stdint.h> 37 #include <stdint.h>
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 namespace DecimalPrivate { 41 namespace DecimalPrivate {
42 class SpecialValueHandler; 42 class SpecialValueHandler;
43 } 43 }
44 44
45 // This class represents decimal base floating point number. 45 // This class represents decimal base floating point number.
46 // 46 //
47 // FIXME: Once all C++ compiler support decimal type, we should replace this 47 // FIXME: Once all C++ compiler support decimal type, we should replace this
48 // class to compiler supported one. See below URI for current status of decimal 48 // class to compiler supported one. See below URI for current status of decimal
49 // type for C++: // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n197 7.html 49 // type for C++: // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n197 7.html
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 Decimal compareTo(const Decimal&) const; 170 Decimal compareTo(const Decimal&) const;
171 171
172 static AlignedOperands alignOperands(const Decimal& lhs, const Decimal& rhs) ; 172 static AlignedOperands alignOperands(const Decimal& lhs, const Decimal& rhs) ;
173 static inline Sign invertSign(Sign sign) { return sign == Negative ? Positiv e : Negative; } 173 static inline Sign invertSign(Sign sign) { return sign == Negative ? Positiv e : Negative; }
174 174
175 Sign sign() const { return m_data.sign(); } 175 Sign sign() const { return m_data.sign(); }
176 176
177 EncodedData m_data; 177 EncodedData m_data;
178 }; 178 };
179 179
180 } // namespace WebCore 180 } // namespace blink
181 181
182 #endif // Decimal_h 182 #endif // Decimal_h
OLDNEW
« no previous file with comments | « Source/platform/DateTimeChooserClient.cpp ('k') | Source/platform/Decimal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698