cvs commit: src/lib/msun/src s_cosf.c s_sinf.c s_tanf.c

Bruce Evans bde at FreeBSD.org
Thu Nov 17 03:53:23 GMT 2005


bde         2005-11-17 03:53:22 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         s_cosf.c s_sinf.c s_tanf.c 
  Log:
  Minor cleanups:
  
  s_cosf.c and s_sinf.c:
  Use a non-bogus magic constant for the threshold of pi/4.  It was 2 ulps
  smaller than pi/4 rounded down, but its value is not critical so it should
  be the result of natural rounding.
  
  s_cosf.c and s_tanf.c:
  Use a literal 0.0 instead of an unnecessary variable initialized to
  [(float)]0.0.  Let the function prototype convert to 0.0F.
  
  Improved wording in some comments.
  
  Attempted to improve indentation of comments.
  
  Revision  Changes    Path
  1.9       +6 -7      src/lib/msun/src/s_cosf.c
  1.9       +6 -7      src/lib/msun/src/s_sinf.c
  1.9       +9 -10     src/lib/msun/src/s_tanf.c


More information about the cvs-src mailing list