bababbababababababa

This commit is contained in:
bumbread 2022-06-16 23:39:50 +11:00
parent b414343f52
commit a16e2d5a6e
2 changed files with 9 additions and 11 deletions

View File

@ -1,10 +0,0 @@
#define asuint64(x) ((union {double f; uint64_t i;}){x}).i
#define asdouble(x) ((union {double f; uint64_t i;}){x}).f
#include <_compiler.h>
#if defined(_compiler_clang) || defined(_compiler_gnu)
#define just_do_it(t) __attribute__((unused)) volatile t
#else
#define just_do_it(t) volatile t
#endif

View File

@ -5,7 +5,15 @@
#include <float.h>
#include <limits.h>
#include "_util.h"
#define asuint64(x) ((union {double f; uint64_t i;}){x}).i
#define asdouble(x) ((union {double f; uint64_t i;}){x}).f
#include <_compiler.h>
#if defined(_compiler_clang) || defined(_compiler_gcc)
#define just_do_it(t) __attribute__((unused)) volatile t
#else
#define just_do_it(t) volatile t
#endif
double nearbyint(double x) {
#pragma STDC FENV_ACCESS ON