mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Odstraneni IsNan a IsInf z TCore (pridano do Core)
git-svn-id: svn://ultimatepp.org/upp/trunk@6908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3e0eea0098
commit
d143cd6502
3 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ String CalcTypeNameConvert::Format(const char *raw_name)
|
|||
|
||||
Value CalcType<double>::ToValue(double t)
|
||||
{
|
||||
if(IsNan(t))
|
||||
if(IsNaN(t))
|
||||
throw Exc(CalcNanError());
|
||||
if(IsInf(t))
|
||||
throw Exc(CalcInfError());
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
NAMESPACE_UPP
|
||||
|
||||
<<<<<<< .mine
|
||||
=======
|
||||
bool IsNan(double t)
|
||||
{
|
||||
#ifdef PLATFORM_WIN32
|
||||
|
|
@ -25,6 +27,7 @@ bool IsNan(double t)
|
|||
#endif
|
||||
}
|
||||
|
||||
>>>>>>> .r6907
|
||||
void WeakBase::Chk() const
|
||||
{
|
||||
if(!this)
|
||||
|
|
|
|||
|
|
@ -19,9 +19,6 @@ char GetHotKeyText(longlong_t hotkey); // returns symbolic name of hot
|
|||
String StripHotText(const char* s);
|
||||
String HotTextToSmartText(const char *s);
|
||||
|
||||
bool IsNan(double d);
|
||||
bool IsInf(double d);
|
||||
|
||||
inline int abs2 (Size p) { return p.cx * p.cx + p.cy * p.cy; }
|
||||
inline int abs (Size p) { return (int)hypot(p.cx, p.cy); }
|
||||
inline int MulVector (Size a, Size b) { return a.cx * b.cy - a.cy * b.cx; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue