2021-07-29 00:37:35 -07:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
# YES_ZSH
|
2021-07-29 05:44:12 -07:00
|
|
|
# YES_BASH
|
|
|
|
# YES_DASH
|
2021-07-29 00:37:35 -07:00
|
|
|
|
2021-07-30 19:41:16 -07:00
|
|
|
bin() { ### @-
|
2021-07-29 00:37:35 -07:00
|
|
|
local a="$(($@))"
|
2021-07-30 19:41:16 -07:00
|
|
|
a="$(( (((((((((((((a + 0x0FFFFF80) & 0x1000007F) + 0x00FFFFC0) & 0x1100003F) + 0x000FFFE0) & 0x1110001F) + 0x0000FFF0) & 0x1111000F) + 0x00000FF8) & 0x11111007) + 0x000000FC) & 0x11111103) + 0x0000000E) & 0x11111111 ))"
|
2021-07-29 00:37:35 -07:00
|
|
|
printf "%08X\n" "$a"
|
|
|
|
}
|
|
|
|
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || bin "$@"
|