48a924c561
The libredox 0.1.19 / redox_syscall 0.9.1 bump left 45 recipe lockfiles pinning libredox 0.1.18+rb0.3.1 and redox_syscall 0.9.0+rb0.3.1. The cookbook builds with --locked, so every affected recipe died with error: cannot update the lock file .../Cargo.lock because --locked was passed to prevent this which is what took out redox-driver-sys -- and with it every Red Bear driver -- during the redbear-full build. Regenerating the fork lockfiles was not enough; the recipes that consume the forks as path deps carry their own. This is step 6 of local/docs/FORK-BUMP-PATCHING-POLICY.md applied to the recipe layer. Also drop the hardcoded GCC version in recipes/libs/libstdcxx-v3: the literal include/c++/13.2.0 stopped resolving the moment the cross toolchain moved to 16.1.0, leaving -I pointing at a directory that does not exist. Now resolves the newest installed C++ header directory and fails loudly if there is none. Same failure class as the hardcoded 13.2.0 in mk/prefix.mk. Note: a few recipe-level Cargo.lock files (redox-driver-pci, cpufreqd, redbear-acmd/-ecmd/-ftdi) sit beside a recipe.toml whose [source] is path = "source", so they are not build inputs; redox-driver-pci's even references a redox-driver-core/Cargo.toml that does not exist. They are left alone rather than given meaning they do not have. redox-driver-sys now cooks clean.
60 lines
1.6 KiB
C
60 lines
1.6 KiB
C
/* libquadmath uses soft-fp only for sqrtq and only for
|
|
the positive finite case, so it doesn't care about
|
|
NaN representation, nor tininess after rounding vs.
|
|
before rounding, all it cares about is current rounding
|
|
mode and raising inexact exceptions. */
|
|
#if __SIZEOF_LONG__ == 8
|
|
#define _FP_W_TYPE_SIZE 64
|
|
#define _FP_I_TYPE long long
|
|
#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0
|
|
#else
|
|
#define _FP_W_TYPE_SIZE 32
|
|
#define _FP_I_TYPE int
|
|
#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0, 0, 0
|
|
#endif
|
|
#define _FP_W_TYPE unsigned _FP_I_TYPE
|
|
#define _FP_WS_TYPE signed _FP_I_TYPE
|
|
#define _FP_QNANNEGATEDP 0
|
|
#define _FP_NANSIGN_Q 1
|
|
#define _FP_KEEPNANFRACP 1
|
|
#define _FP_TININESS_AFTER_ROUNDING 0
|
|
#ifndef __BYTE_ORDER
|
|
#define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
|
|
#define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
|
|
#define __BYTE_ORDER __BYTE_ORDER__
|
|
#endif
|
|
#define _FP_DECL_EX \
|
|
unsigned int fp_roundmode __attribute__ ((unused)) = FP_RND_NEAREST;
|
|
#define FP_ROUNDMODE fp_roundmode
|
|
#define FP_INIT_ROUNDMODE \
|
|
do \
|
|
{ \
|
|
switch (fegetround ()) \
|
|
{ \
|
|
case FE_UPWARD: \
|
|
fp_roundmode = FP_RND_PINF; \
|
|
break; \
|
|
case FE_DOWNWARD: \
|
|
fp_roundmode = FP_RND_MINF; \
|
|
break; \
|
|
case FE_TOWARDZERO: \
|
|
fp_roundmode = FP_RND_ZERO; \
|
|
break; \
|
|
default: \
|
|
break; \
|
|
} \
|
|
} \
|
|
while (0)
|
|
#define FP_HANDLE_EXCEPTIONS \
|
|
do \
|
|
{ \
|
|
if (_fex & FP_EX_INEXACT) \
|
|
{ \
|
|
volatile double eight = 8.0; \
|
|
volatile double eps \
|
|
= DBL_EPSILON; \
|
|
eight += eps; \
|
|
} \
|
|
} \
|
|
while (0)
|