0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Alex Rønne Petersen c9e67e71c1
std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm().
The old isARM() function was a portability trap. With the name it had, it seemed
like the obviously correct function to use, but it didn't include Thumb. In the
vast majority of cases where someone wants to ask "is the target Arm?", Thumb
*should* be included.

There are exactly 3 cases in the codebase where we do actually need to exclude
Thumb, although one of those is in Aro and mirrors a check in Clang that is
itself likely a bug. These rare cases can just add an extra isThumb() check.
History 2024-11-03 09:29:30 +01:00
..
Build std.Target: Add support for specifying Android API level. 2024-11-01 06:23:59 +01:00
c fix typo in segset_t 2024-10-03 09:37:57 -07:00
compress Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
crypto compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
debug std.debug: watchOS: fixes for ilp32 ABI (#21765) 2024-10-29 22:12:57 +01:00
dwarf Dwarf: fix and test allowzero pointers 2024-08-17 05:57:45 -04:00
fmt std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
fs std.fs.File: Fix metadata error check on Linux 2024-10-31 14:02:42 +01:00
hash Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
heap Fix index calculation in WasmPageAllocator 2024-10-12 22:53:02 +02:00
http disable failing test 2024-09-19 18:20:22 -07:00
io Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
json Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
math std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
mem std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
meta std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
net std.net, std.http: simplify 2024-02-23 02:37:11 -07:00
os std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
posix std.posix: Skip Stat struct comparison in fstatat test for s390x-linux. 2024-10-04 00:26:55 +02:00
process fix IB in fifoToOwnedArrayList 2024-09-24 13:19:06 -07:00
Random add std.testing.random_seed 2024-07-23 11:43:12 -07:00
sort compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
tar Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target std.Target: Remove armv7k/armv7s. 2024-11-02 10:25:40 +01:00
testing std: enable FailingAllocator to fail on resize 2023-09-06 19:06:32 +03:00
Thread combine codegen work queue and linker task queue 2024-10-23 16:27:39 -07:00
time std.time.epoch: Fix comments referring to epoch as 1970-10-01 2024-08-15 17:54:27 -07:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind port cachegrind.h to zig (#19241) 2024-08-23 22:59:30 -07:00
zig std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
zip std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
array_hash_map.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
array_list.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
ascii.zig std.ascii: make toLower toUpper branchless (#21369) 2024-09-13 17:22:19 -07:00
atomic.zig Merge pull request #21587 from alexrp/hexagon-porting 2024-10-06 13:35:56 +02:00
base64.zig stdlib : base64 encode to writer (#20961) 2024-09-04 08:10:12 +00:00
bit_set.zig std.DynamicBitSet: remove wrong and useless comments (#21418) 2024-09-19 17:06:23 -07:00
BitStack.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
bounded_array.zig Revert "Smaller memory footprint for BoundedArray (#16299)" 2024-08-23 22:30:10 -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 introduce a CLI flag to enable .so scripts; default off 2024-10-23 16:27:38 -07:00
builtin.zig spirv: Uniform/PushConstant variables 2024-11-01 02:03:33 +03:30
c.zig Merge pull request #21860 from alexrp/llvm-triple-stuff 2024-11-02 02:00:25 +01:00
coff.zig std.{coff,elf}: Remove the {MachineType,EM}.toTargetCpuArch() functions. 2024-08-23 19:56:24 +02:00
compress.zig improve documentation in std 2024-03-10 18:13:30 -07:00
crypto.zig Rename the namespace for ml_kem variants of Kyber to nist 2024-08-22 07:54:12 +02:00
debug.zig std.debug: watchOS: fixes for ilp32 ABI (#21765) 2024-10-29 22:12:57 +01:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig std.dynamic_library: update to new elf API 2024-10-12 10:44:17 -07:00
elf.zig link.Elf: eliminate an O(N^2) algorithm in flush() 2024-10-12 10:44:17 -07:00
enums.zig std: avoid field/decl name conflicts 2024-08-29 20:39:11 +01:00
fifo.zig std: promote tests to doctests 2024-03-21 14:11:46 -07:00
fmt.zig std.fmt: Fix compile error in Parser.peek() (#20532) 2024-10-30 07:45:23 +00:00
fs.zig fix compilation errors for fs and fs.Dir (#21643) 2024-10-17 01:08:58 +02:00
gpu.zig std.gpu: add instanceIndex 2024-11-01 02:04:27 +03:30
hash.zig XXH3 Implementation for Zig STD (#17530) 2023-10-17 13:55:01 -05:00
hash_map.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
heap.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
http.zig add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io.zig std: async read into small temporary buffer between poll calls on Windows 2024-10-06 07:01:12 +01:00
json.zig Delete compile errors for deprecated decls 2024-05-03 13:27:30 -07:00
leb128.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
linked_list.zig Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
macho.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
math.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
mem.zig std.mem.asBytes: fix footgun when passing non-single pointer 2024-10-31 20:42:53 +00:00
meta.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
multi_array_list.zig std.MultiArrayList: add clear methods 2024-10-14 03:33:23 -07:00
net.zig std.c reorganization 2024-07-19 00:30:32 -07:00
once.zig compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
os.zig std.c reorganization 2024-07-19 00:30:32 -07:00
pdb.zig std.pdb: obey naming conventions 2024-08-29 23:43:52 +01:00
posix.zig freebsd posix: add SystemOutdated to MemFdCreateError 2024-10-07 13:19:33 -04:00
priority_dequeue.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00
priority_queue.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
process.zig move std.zig.fatal to std.process.fatal 2024-07-20 01:06:28 -07:00
Progress.zig std.Progress: fix data race 2024-10-23 13:47:44 -07:00
Random.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
RingBuffer.zig std.RingBuffer: use sliceAt/sliceFirst in read*AssumeLength 2024-03-10 18:17:23 +11:00
segmented_list.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
SemanticVersion.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
simd.zig std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
sort.zig std.equalRange: Compute lower and upper bounds simultaneously 2024-09-23 13:03:06 -07:00
start.zig std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01: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 Remove packed_int_array.zig from std 2024-10-12 12:00:09 +02:00
tar.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target.zig std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
testing.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
Thread.zig remove unnecessary cast 2024-10-29 01:48:13 +01:00
time.zig move std.time.sleep to std.Thread.sleep 2024-09-26 12:35:14 -07:00
treap.zig Condense and extend std.Treap's traversal functionalities. (#20002) 2024-07-28 19:47:55 -07:00
tz.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
unicode.zig std: update eval branch quotas after bdbc485 2024-08-21 01:30:46 +01:00
Uri.zig std.http.Client: always omit port when it matches default 2024-04-12 22:37:07 -07:00
valgrind.zig port cachegrind.h to zig (#19241) 2024-08-23 22:59:30 -07:00
wasm.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
zig.zig std.Target: Remove Cpu.Arch.dxil and ObjectFormat.dxcontainer. 2024-09-23 17:17:25 -07:00
zip.zig std.zip: Fix typo in doc comments 2024-06-17 16:12:19 -04:00