svn commit: r362964 - stable/12/lib/libc/riscv

Mitchell Horne mhorne at FreeBSD.org
Mon Jul 6 15:00:29 UTC 2020


Author: mhorne
Date: Mon Jul  6 15:00:28 2020
New Revision: 362964
URL: https://svnweb.freebsd.org/changeset/base/362964

Log:
  MFC r362788:
  
  Fix printf(3) output of long doubles on RISC-V
  
  PR:	242067

Modified:
  stable/12/lib/libc/riscv/_fpmath.h

Modified: stable/12/lib/libc/riscv/_fpmath.h
==============================================================================
--- stable/12/lib/libc/riscv/_fpmath.h	Mon Jul  6 14:52:21 2020	(r362963)
+++ stable/12/lib/libc/riscv/_fpmath.h	Mon Jul  6 15:00:28 2020	(r362964)
@@ -46,19 +46,6 @@ union IEEEl2bits {
 #define	LDBL_IMPLICIT_NBIT
 #define	mask_nbit_l(u)	((void)0)
 
-#define	LDBL_MANH_SIZE	20
-#define	LDBL_MANL_SIZE	32
-
-#define	LDBL_TO_ARRAY32(u, a) do {			\
-	(a)[0] = (uint32_t)(u).bits.manl;		\
-	(a)[1] = (uint32_t)(u).bits.manh;		\
-} while(0)
-
-/*
- * TODO: Due to compiler problem we are temporary using
- * LDBL_PREC == 53. Use code below for LDBL_PREC == 113
- */
-#if 0
 #define	LDBL_MANH_SIZE	48
 #define	LDBL_MANL_SIZE	64
 
@@ -68,4 +55,3 @@ union IEEEl2bits {
 	(a)[2] = (uint32_t)(u).bits.manh;		\
 	(a)[3] = (uint32_t)((u).bits.manh >> 32);	\
 } while(0)
-#endif


More information about the svn-src-all mailing list