diff options
author | 2007-06-01 05:50:56 +0000 | |
---|---|---|
committer | 2007-06-01 05:50:56 +0000 | |
commit | a4daaee457dadd2bd4f34d99277cd6ec8502824c (patch) | |
tree | a3a9ce123a70652c4998d5ac4d2017ebb53c91c7 /lib/libm/src/math_private.h | |
parent | remove crufty adosfs. everytime we try to change a vfs layer interface, (diff) | |
download | wireguard-openbsd-a4daaee457dadd2bd4f34d99277cd6ec8502824c.tar.xz wireguard-openbsd-a4daaee457dadd2bd4f34d99277cd6ec8502824c.zip |
add little endian and big endian shapes for extended and quad float
Diffstat (limited to 'lib/libm/src/math_private.h')
-rw-r--r-- | lib/libm/src/math_private.h | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/lib/libm/src/math_private.h b/lib/libm/src/math_private.h index df2c618ed93..2d2c7d8f2c3 100644 --- a/lib/libm/src/math_private.h +++ b/lib/libm/src/math_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math_private.h,v 1.6 2002/02/16 21:27:27 millert Exp $ */ +/* $OpenBSD: math_private.h,v 1.7 2007/06/01 05:50:56 jason Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -50,6 +50,27 @@ typedef union } parts; } ieee_double_shape_type; +typedef union +{ + long double value; + struct { + u_int32_t msw; + u_int32_t nsw; + u_int32_t lsw; + } parts; +} ieee_extended_shape_type; + +typedef union +{ + long double value; + struct { + u_int32_t mswhi; + u_int32_t mswlo; + u_int32_t lswhi; + u_int32_t lswlo; + } parts; +} ieee_quad_shape_type; + #endif #if (BYTE_ORDER == LITTLE_ENDIAN) && !defined(arm32) @@ -64,6 +85,27 @@ typedef union } parts; } ieee_double_shape_type; +typedef union +{ + long double value; + struct { + u_int32_t lswlo; + u_int32_t lswhi; + u_int32_t mswlo; + u_int32_t mswhi; + } parts; +} ieee_quad_shape_type; + +typedef union +{ + long double value; + struct { + u_int32_t lsw; + u_int32_t nsw; + u_int32_t msw; + } parts; +} ieee_extended_shape_type; + #endif /* Get two 32 bit ints from a double. */ |