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 1436 times, submitted by Skorm.