cosmopolitan/third_party/gdtoa/gdtoa_fltrnds.inc
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

11 lines
178 B
C++

FPI fpi1;
int Rounding;
const FPI *fpi;
Rounding = FLT_ROUNDS;
fpi = &fpi0;
if (Rounding != FPI_Round_near) {
fpi1 = fpi0;
fpi = &fpi1;
fpi1.rounding = Rounding;
}