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 }, \
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 ---