| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |