This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 90f24ec29d0731cdda4b1db14ec73a87d88c50bf
Author: chao an <anc...@lixiang.com>
AuthorDate: Mon Jan 15 20:48:09 2024 +0800

    arch/risc-v: add ARCH_QPFPU for Quad-Precision Floating-Point
    
    new options to enable toolchain support for quadruple precision
    (128 bits or 16 bytes) floating point if both the toolchain and
    the hardware support it.
    
    Signed-off-by: chao an <anc...@lixiang.com>
---
 arch/Kconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/Kconfig b/arch/Kconfig
index 75969c7049..3173dcf3ab 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -440,6 +440,11 @@ config ARCH_HAVE_DPFPU
        default n
        select ARCH_HAVE_FPU
 
+config ARCH_HAVE_QPFPU
+       bool
+       default n
+       select ARCH_HAVE_DPFPU
+
 config ARCH_HAVE_LAZYFPU
        bool
        default n
@@ -577,6 +582,14 @@ config ARCH_DPFPU
                Enable toolchain support for double precision (64-bit) floating
                point if both the toolchain and the hardware support it.
 
+config ARCH_QPFPU
+       bool "Quad-Precision FPU support"
+       default y
+       depends on ARCH_FPU && ARCH_HAVE_DPFPU && ARCH_HAVE_QPFPU
+       ---help---
+               Enable toolchain support for quadruple precision (128 bits or 
16 bytes) floating
+               point if both the toolchain and the hardware support it.
+
 config ARCH_LAZYFPU
        bool "Enable lazy FPU state save / restore"
        default n

Reply via email to