aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix/sys_float.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-07-18 14:30:55 +0200
committerGitHub <[email protected]>2017-07-18 14:30:55 +0200
commitaa8df5238a20a539bc90deb68aa39050197ba725 (patch)
treebf5108a9a9304b8377b9e5a922274daef6f0ba20 /erts/emulator/sys/unix/sys_float.c
parentde5cfabdad61d45a112d95e24ac44e3f51a4bd18 (diff)
parent7b5a1a7e787570ff13805a150e4c7c13bda8b0a6 (diff)
downloadotp-aa8df5238a20a539bc90deb68aa39050197ba725.tar.gz
otp-aa8df5238a20a539bc90deb68aa39050197ba725.tar.bz2
otp-aa8df5238a20a539bc90deb68aa39050197ba725.zip
lukas/erts/remove-non-smp/OTP-14518
Remove support for the non-smp emulators
Diffstat (limited to 'erts/emulator/sys/unix/sys_float.c')
-rw-r--r--erts/emulator/sys/unix/sys_float.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/erts/emulator/sys/unix/sys_float.c b/erts/emulator/sys/unix/sys_float.c
index 6435da086f..a82c15bd32 100644
--- a/erts/emulator/sys/unix/sys_float.c
+++ b/erts/emulator/sys/unix/sys_float.c
@@ -39,7 +39,6 @@ erts_sys_init_float(void)
#else /* !NO_FPE_SIGNALS */
-#ifdef ERTS_SMP
static erts_tsd_key_t fpe_key;
/* once-only initialisation early in the main thread (via erts_sys_init_float()) */
@@ -61,11 +60,6 @@ static ERTS_INLINE volatile unsigned long *erts_thread_get_fp_exception(void)
{
return (volatile unsigned long*)erts_tsd_get(fpe_key);
}
-#else /* !SMP */
-#define erts_init_fp_exception() /*empty*/
-static volatile unsigned long fp_exception;
-#define erts_thread_get_fp_exception() (&fp_exception)
-#endif /* SMP */
volatile unsigned long *erts_get_current_fp_exception(void)
{
@@ -659,11 +653,9 @@ void erts_sys_init_float(void)
void erts_thread_init_float(void)
{
-#ifdef ERTS_SMP
/* This allows Erlang schedulers to leave Erlang-process context
and still have working FP exceptions. XXX: is this needed? */
erts_thread_init_fp_exception();
-#endif
#ifndef NO_FPE_SIGNALS
/* NOTE: