You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
446 B
26 lines
446 B
// float_sign().
|
|
|
|
// General includes.
|
|
#include "cl_sysdep.h"
|
|
|
|
// Specification.
|
|
#include "cln/lfloat.h"
|
|
|
|
|
|
// Implementation.
|
|
|
|
#include "cl_LF.h"
|
|
#include "cl_LF_impl.h"
|
|
|
|
#include "cl_inline.h"
|
|
#include "cl_LF_minusp.cc"
|
|
|
|
namespace cln {
|
|
|
|
CL_INLINE2 const cl_LF CL_INLINE2_DECL(float_sign) (const cl_LF& x)
|
|
{
|
|
// Methode: x>=0 -> Ergebnis 1.0; x<0 -> Ergebnis -1.0
|
|
return encode_LF1s(TheLfloat(x)->sign,TheLfloat(x)->len);
|
|
}
|
|
|
|
} // namespace cln
|