From 3ad95d6be381ce5bae5881d18cb99e269a27ed03 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 10 Apr 2024 14:35:00 +0100 Subject: [PATCH] Add append_u128 --- core/strconv/strconv.odin | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/strconv/strconv.odin b/core/strconv/strconv.odin index f23e619dc..c2e81ef3e 100644 --- a/core/strconv/strconv.odin +++ b/core/strconv/strconv.odin @@ -1213,6 +1213,13 @@ Output: append_int :: proc(buf: []byte, i: i64, base: int) -> string { return append_bits(buf, u64(i), base, true, 8*size_of(int), digits, nil) } + + + +append_u128 :: proc(buf: []byte, u: u128, base: int) -> string { + return append_bits_128(buf, u, base, false, 8*size_of(uint), digits, nil) +} + /* Converts an integer value to a string and stores it in the given buffer