aboutsummaryrefslogtreecommitdiff
path: root/lib/std/simd.zig
AgeCommit message (Collapse)Author
2022-09-07std.simd: change T to u16Dan Ellis Echavarria
The `element_bit_size` would break if `T` was signed due to `ceilPowerOfTwo` only working on unsigned numbers.
2022-07-22SIMD size suggestions: suggestions code now compiles, added moreDan Ellis Echavarria
architectures The idea behind this is using the register capabilities in safe amounts, there is still some consideration to be done. + Fixed compile error using std.Target.<arch>.featureSetHas + X86 MMX and "3DNOW" 64 bits register usage considered for vector size + Added ARM Neon recommened usage of 128 bits (The size of the register) + Added AARCH64 Neon and SVE for 128 bits. SVE could use in theory up to 2048 bits, but found only evidence of functional 512 bits on a super computer, decided on using 128 bits as a safety + Added Altivec recommendation of using the 128 bits long register + Using MIPS msa 2x64bits capabilities, usage of 64 bits registers for MDMX systems, need testing on how using bigger values affect performance + Using V extension on RISC-V, which is extendable via instructions, decided on 128 bits as a value to not use all registers + in SPARC the 64 bits registers are used, a max of 32 registers are to be used for configurable simd instructions, decided on using the size of the register, need testing on performance hit on using a bigger sized register vector size
2022-07-06std: disable aarch64 tests that regressed from LLVM 14Andrew Kelley
See #12012
2022-07-03std: disable tests regressed from LLVM 14Andrew Kelley
2022-06-30stage2: implement alignment calculation of vectorsAndrew Kelley
closes #11856
2022-06-07std: adjust for stage2 semanticsVeikka Tuominen
2022-04-05zig fmt: remove trailing whitespace on doc commentsDamien Firmenich
Fixes #11353 The renderer treats comments and doc comments differently since doc comments are parsed into the Ast. This commit adds a check after getting the text for the doc comment and trims whitespace at the end before rendering. The `a = 0,` in the test is here to avoid a ParseError while parsing the test.
2022-04-04std.simd: Fix suggestVectorSizeForCpuominitay
2022-03-30replace other uses of `std.meta.Vector` with `@Vector` (#11346)Meghan
2022-03-27std: SIMD utility functionstecanec
This file contains a collections of functions that may be useful for SIMD, such as generating a vector with a linear range of numbers starting at zero, joining two vectors together, getting the index of the first true in a vector of bools, etc.