Skip to content
  1. Aug 03, 2016
  2. Aug 02, 2016
  3. Aug 01, 2016
  4. Jul 31, 2016
  5. Jul 30, 2016
    • David S. Alessio's avatar
      This commit fixes the following libc/math issues: · c145159c
      David S. Alessio authored
      1) asin[f l]() use Newton’s method to converge on a solution. But Newton’s method converges very slowly (> 500,000 iterations) for values of x close to 1.0; and, in the case of asinl(), sometimes fails to converge (loops forever). The attached patch uses an trig identity for values of x > sqrt(2). The resultant functions converge in no more than 5 iterations, 6 for asinl().
      
      2) The NuttX erf[f l]() functions are based on Chebyshev fitting to a good guess. The problem there’s a bug in the implementation that causes the functions to blow up with x near -3.0. This patch fixes that problem. It should be noted that this method returns the error function erf(x) with fractional error less than 1.2E-07 and that’s fine for the float version erff(), but the same method is used for double and long double version which will yield only slightly better precision. This patch doesn't address the issue of lower precision for erf() and erfl().
      
      3) a faster version of copysignf() for floats is included.
      c145159c
    • Gregory Nutt's avatar
  6. Jul 29, 2016
  7. Jul 28, 2016
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
      toos/refresh.sh: Recent complexities added to apps/ means that configuratino... · f9829db9
      Gregory Nutt authored
      toos/refresh.sh: Recent complexities added to apps/ means that configuratino needs corred Make.defs file in place in order to configure properly
      f9829db9
    • Maciej Wójcik's avatar
      PR 91: Disable the RTC in the hymini-stm32v/nsh2 configuration. I hesitated... · 413a7256
      Maciej Wójcik authored
      PR 91:  Disable the RTC in the hymini-stm32v/nsh2 configuration.  I hesitated to include this change because it masks the unresolved problem of Issue 9.
      413a7256
    • Gregory Nutt's avatar
      Top-Level Makefiles. Fix a chicken-and-egg problem. · b27df02b
      Gregory Nutt authored
      In the menuconfig target, the context dependency was executed before kconfig-mconf.  That was necessary because the link at apps/platform/board needed to be set up before creating the apps/Kconfig file.  Otherwise, the platform Kconfig files would not be included.  But this introduces the chicken-and-egg problem in some configurations.
      
      In particular:  (1) An NX graphics configuration is used that requires auto-generation of source files using cpp, (2) the configuration is set for Linux, but (3) we are running under Cygwin with (4) a Windows native toolchain.  In this case, POSIX-style symbolic links are set up but the Windows native toolchain cannot follow them.
      
      The reason we are running 'make menuconfig' is to change from Linux to Cygwin, but the target fails.  During the context phase, NX runs CPP to generate source files but that fails because the Windows native toolchain cannot follow the links.  Checkmate.
      
      This was fixed by changing all of the make menuconfig (and related) targets.  They no long depend on context being run.  Instead, they depend only on the dirlinks target.  The dirlinks target only sets up the directory links but does not try to run all of the context setup; the compiler is never invoked; no code is autogeneraed; and things work.
      b27df02b