summaryrefslogtreecommitdiff
path: root/include/sal
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2020-12-17 20:44:43 +0100
committerEike Rathke <erack@redhat.com>2020-12-18 01:05:16 +0100
commitcb22636a56b35d4e118446cc3c9fe606db6f46b0 (patch)
treeebbfbe12ca20e3f47fc0f7fe5d1c1ab54b3ca25f /include/sal
parent1d6c22e1dca3fccec51b411dd749894ff32399dd (diff)
Add sal_uInt64 fields to sal_math_Double
We may need them later, and at least don't have a confusing inf_parts or nan_parts struct name but just parts as well. Change-Id: Ife0cf279c47d2815aa2a1483223397b147e9d776 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107924 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'include/sal')
-rw-r--r--include/sal/mathconf.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sal/mathconf.h b/include/sal/mathconf.h
index 8e5831cde3b5..ab6a4807b59f 100644
--- a/include/sal/mathconf.h
+++ b/include/sal/mathconf.h
@@ -104,6 +104,13 @@ union sal_math_Double
unsigned msw :32;
unsigned lsw :32;
} w32_parts;
+ struct
+ {
+ sal_uInt64 sign : 1;
+ sal_uInt64 exponent :11;
+ sal_uInt64 fraction :52;
+ } parts;
+ sal_uInt64 intrep;
double value;
};
@@ -130,6 +137,13 @@ union sal_math_Double
unsigned lsw :32;
unsigned msw :32;
} w32_parts;
+ struct
+ {
+ sal_uInt64 fraction :52;
+ sal_uInt64 exponent :11;
+ sal_uInt64 sign : 1;
+ } parts;
+ sal_uInt64 intrep;
double value;
};