C语言中,这个分段函数如何用switch-case语句实现?

C语言中,这个分段函数如何用switch-case语句实现?

bool isNegitive = x < 0 ; switch ( isNegitive ){ case true : return - 1 ; case false : return 2 * x ; }