Implement constant-time absolute value and sign recovery