0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Richard Levitte ffcfeb919f Fix std.fmt.hex() to work with unsigned ints of all multiples of 8 bits
@SizeOf(@typeInfo(T)) for any u{n} seems to give sizes of u32, u64, u128
and so on, depending on what size x fits into.  This causes problems with
'>>' if x isn't exactly one of those sizes.

@typeInfo(@TypeOf(x)).int.bits gives a more accurate size.
History 2026-04-16 19:44:40 +02:00
..
Build delete @cImport from the language 2026-04-15 17:43:53 -07:00
builtin Add RISC-V ABI register alias names for inline asm clobbers 2026-04-08 14:37:48 +02:00
c std.os.linux: add explicit backing type to packed structs in extern types 2026-03-12 22:33:03 +01:00
compress multiprocess fuzzing 2026-04-03 12:27:34 +02:00
crypto crypto TLS bundle: make AddCertsFromDirPathError compile 2026-04-12 00:13:59 +02:00
debug Arena allocates text 2026-04-13 01:30:14 -07:00
dwarf fix compiler ftbfs from std.macho and std.dwarf changes 2025-09-30 13:44:51 +01:00
fmt all: replace all @Type usages 2025-11-22 22:42:38 +00:00
fs std: make file locking tests use io not threads 2026-04-01 02:54:25 -07:00
hash Make benchmarking use std.Io.Clock.awake for timing (#31553) 2026-03-18 21:00:08 +01:00
heap Further improvements to stack trace type 2026-04-12 04:01:29 -07:00
http std.http: reliably update reader state 2026-04-11 11:04:24 -07:00
Io std.Io.Writer.print: fix wrong fn signature in docs 2026-04-16 10:07:22 -07:00
json std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
math x86_64: fix mir rmi signedness 2026-04-10 23:23:33 +02:00
mem std: fix sentinel handling in Allocator interface 2026-03-25 10:50:24 +01:00
meta all: replace all @Type usages 2025-11-22 22:42:38 +00:00
os std.os.linux: remove vfork() 2026-04-16 16:00:21 +02:00
posix std.posix: remove close function 2026-02-11 23:37:31 +01:00
process Improve debug I/O color detection/handling for WASI and Emscripten 2026-04-11 12:25:22 -07:00
Random Make benchmarking use std.Io.Clock.awake for timing (#31553) 2026-03-18 21:00:08 +01:00
sort std.sort.pdq: fix out-of-bounds access in partialInsertionSort (#25253) 2025-09-17 19:54:15 -07:00
tar Use / as path separator when writing tar files 2026-03-08 02:10:00 +01:00
Target misc: Add allegrex CPU & features, run tool, update semver 2026-03-21 19:39:04 -04:00
testing Removes dead code, updates some tests, fixes typos in comments, formats 2026-04-12 04:01:30 -07:00
time removed reduntant @as() from switch in getDaysInMonth 2026-02-05 21:58:35 +01:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode Make benchmarking use std.Io.Clock.awake for timing (#31553) 2026-03-18 21:00:08 +01:00
valgrind Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
zig Merge pull request 'incremental: fix tracking of nested container declarations (and of opaque types)' (#31889) from dont-track-children-if-lost-parent into master 2026-04-16 09:50:26 +02:00
zon std: update for language changes 2026-03-10 10:38:50 +00:00
array_hash_map.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
array_list.zig Simplify std.ArrayList.replaceRange and std.ArrayList.replaceRangeAssumeCapacity (#31710) 2026-04-02 15:11:24 +02:00
ascii.zig feat(std.ascii): add boundedOrderIgnoreCaseZ 2026-01-17 21:42:38 +01:00
atomic.zig Merge pull request 'std.heap.ArenaAllocator: add fuzz test + some optimizations' (#31407) from justusk/zig:fuzz-arena into master 2026-03-11 03:00:07 +01:00
base64.zig Base64DecoderWithIgnore.calcSizeUpperBound cannot return an error (#25834) 2025-11-07 08:16:34 +01:00
bit_set.zig lib/std: BitSet,EnumSet: replace initEmpty/initFull with decl literals (#31469) 2026-04-05 05:12:13 +02:00
BitStack.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Build.zig delete @cImport from the language 2026-04-15 17:43:53 -07:00
builtin.zig feat: init eZ80 arch via CBE 2026-04-16 19:21:16 +02:00
c.zig process.Child: use std.posix.SIG instead of u32 for Child.Term stopped field 2026-04-07 10:27:21 +02:00
coff.zig std: replace usages of std.mem.indexOf with std.mem.find 2025-12-05 14:31:27 +01:00
compress.zig std.compress: rework flate to new I/O API 2025-07-31 22:10:11 -07:00
crypto.zig crypto: Allow arbitrary types for secureZeroes 2026-02-13 17:07:03 +01:00
debug.zig Arena allocates text 2026-04-13 01:30:14 -07:00
deque.zig rework fuzz testing to be smith based 2026-02-13 22:12:19 -05:00
DoublyLinkedList.zig *LinkedList.remove() assumes node is in the list 2025-10-25 21:10:02 -07:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig std: move GetFinalPathNameByHandle to Io.Threaded 2026-02-04 16:27:13 -08:00
elf.zig std: work around language changes 2026-03-10 10:26:07 +00:00
enums.zig std.EnumSet: add back deprecated initialization functions 2026-04-06 15:54:47 +02:00
fmt.zig Fix std.fmt.hex() to work with unsigned ints of all multiples of 8 bits 2026-04-16 19:44:40 +02:00
fs.zig std: find a better home for the "preopens" concept 2026-01-08 05:06:31 +01:00
gpu.zig remove std.gpu.(binding|location) 2025-12-22 10:00:35 -08:00
hash.zig all: replace all @Type usages 2025-11-22 22:42:38 +00:00
hash_map.zig compiler,std: various little fixes 2026-03-10 10:26:14 +00:00
heap.zig std.Target: add psp os 2026-03-21 02:56:24 -04:00
http.zig std.http: reliably update reader state 2026-04-11 11:04:24 -07:00
Io.zig std.Io.net: add error.PortUnreachable to NetReceive 2026-04-08 22:58:22 +02:00
json.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
leb128.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
log.zig std.Threaded: replace console kernel32 functions with ntdll 2026-02-05 07:41:25 -05:00
macho.zig std: update for language changes 2026-03-10 10:38:50 +00:00
math.zig even tighter return type for std.math.sign (#31485) 2026-03-17 02:10:27 +01:00
mem.zig Merge pull request 'std: add mem.absorbSentinel(), fix sentinel handling in Allocator interface' (#31611) from ifreund/zig:absorb-sent into master 2026-04-02 15:55:21 +02:00
meta.zig remove various workarounds for issues that are now fixed (#31567) 2026-03-20 19:58:33 +01:00
multi_array_list.zig std: update for language changes 2026-03-10 10:38:50 +00:00
os.zig std: start wrangling environment variables and process args 2026-01-04 00:27:07 -08:00
pdb.zig Removes dead code, updates some tests, fixes typos in comments, formats 2026-04-12 04:01:30 -07:00
pie.zig std.pie: add missing clobbers on alpha and sparc 2025-11-14 12:19:38 +01:00
posix.zig Allow the user to override unexpected error trace 2026-04-13 19:58:01 +02:00
priority_dequeue.zig priority queue and dequeue: use *const Self in read-only methods and fix deinit (#31712) 2026-04-03 22:20:46 +02:00
priority_queue.zig priority queue and dequeue: use *const Self in read-only methods and fix deinit (#31712) 2026-04-03 22:20:46 +02:00
process.zig windows: use enums for boolean types 2026-03-20 02:25:16 +01:00
Progress.zig Revert "std.Progress: use cmpxchgStrong instead of cmpxchgWeak for locking/unlocking IPC" 2026-03-21 14:04:24 +01:00
Random.zig feat(std.Random): add a linear congruent generator 2026-01-14 12:48:09 +01:00
SemanticVersion.zig std: replace usages of std.mem.indexOf with std.mem.find 2025-12-05 14:31:27 +01:00
simd.zig std.simd: suggest 1024-bit vectors for kvx 2025-11-10 09:40:44 +01:00
SinglyLinkedList.zig SinglyLinkedList.remove docs: Assumes -> asserts 2025-10-25 21:28:54 -07:00
sort.zig std.sort: clarify description of equalRange 2026-04-16 19:42:00 +02:00
start.zig Separates error return traces from stack traces 2026-04-12 04:01:29 -07:00
static_string_map.zig std.static_string_map: Cast length of input for runtime initialization 2024-06-20 23:22:39 +00:00
std.zig Allow the user to override unexpected error trace 2026-04-13 19:58:01 +02:00
tar.zig std.tar.extract: sanitize path traversal 2026-03-27 01:27:38 -07:00
Target.zig feat: init eZ80 arch via CBE 2026-04-16 19:21:16 +02:00
testing.zig checkAllAllocationFailures: provide result type to 'extra_args' 2026-03-11 02:32:29 +01:00
Thread.zig Updates stack trace vs error return trace in more places 2026-04-12 04:01:30 -07:00
time.zig std: finish moving time to Io interface 2026-02-02 23:02:31 -08:00
treap.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
tz.zig std.tz: fix redundant endian handling 2025-08-28 18:30:57 -07:00
unicode.zig zig build fmt 2026-03-12 17:44:03 -04:00
Uri.zig std.Uri: reject invalid URI schemes according to RFC3986 2026-03-23 05:22:46 +01:00
valgrind.zig remove condition codes 2025-07-16 10:27:39 -07:00
wasm.zig wasm linker: implement @tagName for sparse enums 2025-01-15 15:11:36 -08:00
zig.zig delete @cImport from the language 2026-04-15 17:43:53 -07:00
zip.zig std: rename other Dir "make" functions to "create" 2025-12-23 22:15:11 -08:00
zon.zig zon: Add anonymous struct literal in the example 2025-08-15 23:35:16 +02:00