Added finitef() implementation. Won't work yet, since __fpclassifyf() is

not implemented.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-11-14 12:28:21 +00:00
parent d9525baaf5
commit c5f20ef053

View File

@ -116,3 +116,10 @@ __fpclassifyl(long double value)
// TODO: implement me!
return FP_NORMAL;
}
int
finitef(float value)
{
int clazz = __fpclassifyf(value);
return (clazz == FP_ZERO || clazz == FP_SUBNORMAL || clazz == FP_NORMAL);
}