From: André Hentschel Subject: ntdll: Remove unused functions (Clang) Message-Id: <547CE4A2.40108@dawncrow.de> Date: Mon, 01 Dec 2014 22:58:58 +0100 Maybe we want to keep and use save_fpux, but i don't dare to touch this working code... --- dlls/ntdll/signal_i386.c | 19 ------------------- dlls/ntdll/threadpool.c | 5 ----- 2 files changed, 24 deletions(-) diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index 13df4bb..4c2c7e1 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -1012,25 +1012,6 @@ static inline void save_fpu( CONTEXT *context ) /*********************************************************************** - * save_fpux - * - * Save the thread FPU extended context. - */ -static inline void save_fpux( CONTEXT *context ) -{ -#ifdef __GNUC__ - /* we have to enforce alignment by hand */ - char buffer[sizeof(XMM_SAVE_AREA32) + 16]; - XMM_SAVE_AREA32 *state = (XMM_SAVE_AREA32 *)(((ULONG_PTR)buffer + 15) & ~15); - - __asm__ __volatile__( "fxsave %0" : "=m" (*state) ); - context->ContextFlags |= CONTEXT_EXTENDED_REGISTERS; - memcpy( context->ExtendedRegisters, state, sizeof(*state) ); -#endif -} - - -/*********************************************************************** * restore_fpu * * Restore the FPU context to a sigcontext. diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c index fef26fe..21288b9 100644 --- a/dlls/ntdll/threadpool.c +++ b/dlls/ntdll/threadpool.c @@ -78,11 +78,6 @@ static inline LONG interlocked_inc( PLONG dest ) return interlocked_xchg_add( dest, 1 ) + 1; } -static inline LONG interlocked_dec( PLONG dest ) -{ - return interlocked_xchg_add( dest, -1 ) - 1; -} - static void WINAPI worker_thread_proc(void * param) { struct list *item;