forked from AbleOS/ableos
7 lines
138 B
Plaintext
7 lines
138 B
Plaintext
abs := fn(x: int): int {
|
|
mask := x >> 31
|
|
return (x ^ mask) - mask
|
|
}
|
|
min := fn(a: int, b: int): int {
|
|
return b + (a - b & a - b >> 31)
|
|
} |