2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
|
2017-02-10 17:04:56 +01:00
|
|
|
#menu "Math Library Support"
|
2017-02-10 16:32:55 +01:00
|
|
|
|
2012-11-10 17:06:01 +01:00
|
|
|
config LIBM
|
2012-12-26 22:37:50 +01:00
|
|
|
bool "Standard Math library"
|
2012-11-10 17:06:01 +01:00
|
|
|
default n
|
|
|
|
depends on !ARCH_MATH_H
|
2019-09-16 21:29:47 +02:00
|
|
|
select ARCH_FLOAT_H
|
2012-11-10 17:06:01 +01:00
|
|
|
---help---
|
2019-09-16 21:29:47 +02:00
|
|
|
By default, no math library will be provided by NuttX. In this this
|
|
|
|
case, it is assumed that (1) no math library is required, or (2) you
|
|
|
|
will be using the math.h and float.h headers file and the libm
|
|
|
|
library provided by your toolchain.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
This is may be a very good choice is possible because your toolchain
|
|
|
|
may have have a highly optimized version of libm.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
Another possibility is that you have a custom, architecture-specific
|
2020-02-22 19:31:14 +01:00
|
|
|
math library and that the corresponding math.h file resides at
|
2019-09-16 21:29:47 +02:00
|
|
|
arch/<architecture>/include/math.h. The option is selected via
|
|
|
|
CONFIG_ARCH_MATH_H. If ARCH_MATH_H is selected,then the
|
|
|
|
include/nuttx/libmath.h header file will be copied to include/math.h
|
|
|
|
where it can be used by your applications.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
If ARCH_MATH_H is not defined, then this option can be selected to
|
|
|
|
build a generic, math library built into NuttX. This math library
|
|
|
|
comes from the Rhombus OS and was written by Nick Johnson. The
|
|
|
|
Rhombus OS math library port was contributed by Darcy Gong.
|
2017-02-10 17:04:56 +01:00
|
|
|
|
|
|
|
#endmenu # Math Library Support
|