Module Name: src
Committed By: tih
Date: Thu Dec 6 19:17:13 UTC 2018
Modified Files:
src/lib/libc/arch/aarch64/softfloat: softfloat.h
Log Message:
Summary: Align softfloat float128 with libgcc.
While libgcc adapts its float128 data structure to the endianness of
the architecture, the softfloat code in libc didn't. With both of
them handling the same values, softfloat must follow the toolchain.
OK: riastradh
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/aarch64/softfloat/softfloat.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/aarch64/softfloat/softfloat.h
diff -u src/lib/libc/arch/aarch64/softfloat/softfloat.h:1.1 src/lib/libc/arch/aarch64/softfloat/softfloat.h:1.2
--- src/lib/libc/arch/aarch64/softfloat/softfloat.h:1.1 Sun Aug 10 05:47:37 2014
+++ src/lib/libc/arch/aarch64/softfloat/softfloat.h Thu Dec 6 19:17:13 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.2 2018/12/06 19:17:13 tih Exp $ */
/* This is a derivative work. */
@@ -46,6 +46,7 @@ the `FLOAT128' macro and the quadruple-p
#include "softfloat-qp.h"
+#include <sys/endian.h>
#include <machine/ieeefp.h>
/*
@@ -63,7 +64,11 @@ typedef struct {
#endif
#ifdef FLOAT128
typedef struct {
+#if _BYTE_ORDER == _BIG_ENDIAN
unsigned long long high, low;
+#else
+ unsigned long long low, high;
+#endif
} float128;
#endif