Some more stdlib refactoring removing duplicate code. (0.38.9)
This commit is contained in:
parent
54d94a1f3d
commit
794a2354d6
11 changed files with 18 additions and 112 deletions
|
|
@ -12,6 +12,10 @@
|
|||
*/
|
||||
|
||||
// Hex utility functions
|
||||
fun byte_from_hex_pair(hh)
|
||||
hi = hex_val(substr(hh, 0, 1))
|
||||
lo = hex_val(substr(hh, 1, 1))
|
||||
return hi * 16 + lo
|
||||
|
||||
fun hex_val(ch)
|
||||
if (ch == "0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue