This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/30652] SSE expansion is missing for isinf() and other fpclassify functions



------- Comment #2 from rth at gcc dot gnu dot org  2007-02-01 00:28 -------
The generic implementation, including for SSE, is 

  isgreater (abs(f), FLT_MAX)

For isfinite, use islessequal instead.  For isnan, one can use 

  isunordered(f, f)

For isnormal, it'd be

  isgreaterequal(abs(f), FLT_MIN) & islessequal(abs(f), FLT_MAX)

which is less likely to be friendly to inline.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30652


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]