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 fortran/19443] log10 statement does not work properly in gfortran


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-14 13:38 -------
Hmm, try this (if might be that log10f is broken):
#include <math.h>
#include <stdio.h>

int main(void)
{
  float t = 1.0e-5;
  printf("%f\n", 10*log10f(t));
  return 0;
}

If this does not link (try -lm), otherwise I don't know where the bug is.

-- 


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


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