abs

来源:互联网 发布:ubuntu 端口流量 编辑:程序博客网 时间:2024/06/11 16:19

int abs(int x)
{
 return (x ^ (x >> 31)) - (x >> 31);
}

原创粉丝点击