viewing paste Bithack Abs Function | Athena

Posted on the
1 2 3 4 5
function    script  abs {
    .@v = atoi(getarg(0));
    .@mask = .@v >> 4 * 8 - 1;
    return ((.@v + .@mask) ^ .@mask);
}
Viewed 1254 times, submitted by Skorm.