1/*
2 * Copyright (c) 2014, Andreas Sandberg
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
--- 55 unchanged lines hidden (view full) ---
64typedef union {
65 struct {
66 /** Raw representation of the integer part bit and the
67 * fraction. Note that unlike 64-bit floating point
68 * representations the integer bit is explicit. */
69 uint64_t fi;
70 /** Raw representation of sign bit and exponent */
71 uint16_t se;
72 } repr;
73 /**
74 * Represented as a char array, mainly intended for debug dumping
75 * and serialization.
76 */
77 char bits[10];
78} fp80_t;
79
80/** @} */
81
82#ifdef __cplusplus
83} /* extern "C" */
84#endif
85
86#endif
2 * Copyright (c) 2014, Andreas Sandberg
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
--- 55 unchanged lines hidden (view full) ---
64typedef union {
65 struct {
66 /** Raw representation of the integer part bit and the
67 * fraction. Note that unlike 64-bit floating point
68 * representations the integer bit is explicit. */
69 uint64_t fi;
70 /** Raw representation of sign bit and exponent */
71 uint16_t se;
72 } repr;
73 /**
74 * Represented as a char array, mainly intended for debug dumping
75 * and serialization.
76 */
77 char bits[10];
78} fp80_t;
79
80/** @} */
81
82#ifdef __cplusplus
83} /* extern "C" */
84#endif
85
86#endif