fpbits.h (10480:5d4ebc92d32e) fpbits.h (11708:0bb9093e4bbd)
1/*
2 * Copyright (c) 2013, 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 *

--- 70 unchanged lines hidden (view full) ---

79 ((exp) & FP80_EXP_MASK)
80
81#define BUILD_FP80_FI(frac, exp) \
82 ((exp) ? FP80_INT_BIT : 0) | \
83 ((frac) & FP80_FRAC_MASK)
84
85#define BUILD_FP80(sign, frac, exp) \
86 { \
1/*
2 * Copyright (c) 2013, 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 *

--- 70 unchanged lines hidden (view full) ---

79 ((exp) & FP80_EXP_MASK)
80
81#define BUILD_FP80_FI(frac, exp) \
82 ((exp) ? FP80_INT_BIT : 0) | \
83 ((frac) & FP80_FRAC_MASK)
84
85#define BUILD_FP80(sign, frac, exp) \
86 { \
87 .repr.pad = { 0 }, \
87 .repr.se = BUILD_FP80_SE(sign, exp), \
88 .repr.fi = BUILD_FP80_FI(frac, exp) \
89 }
90
91static inline fp80_t
92build_fp80(int sign, uint64_t frac, int exp)
93{
94 const fp80_t f = BUILD_FP80(sign, frac, exp);

--- 18 unchanged lines hidden ---
88 .repr.se = BUILD_FP80_SE(sign, exp), \
89 .repr.fi = BUILD_FP80_FI(frac, exp) \
90 }
91
92static inline fp80_t
93build_fp80(int sign, uint64_t frac, int exp)
94{
95 const fp80_t f = BUILD_FP80(sign, frac, exp);

--- 18 unchanged lines hidden ---