Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex number operations #2

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open

Conversation

mazimkhan
Copy link

@mazimkhan mazimkhan commented Nov 18, 2024

Introduces basic complex arithmetic for float and integer types. Some masked operations for complex numbers are also included.

A single complex value is formed of a real part which is stored in an even lane, and the imaginary part which is stored in the following odd lane.

All complex operations are written for arm_sve-inl.h and generic_ops-inl.h and a new set of tests is introduced for all the new complex operations.

@mazimkhan mazimkhan changed the title Cc up complex arithmetic Complex number operations Nov 18, 2024
@mazimkhan mazimkhan force-pushed the master branch 2 times, most recently from 4eb5a84 to d77be29 Compare November 18, 2024 17:17
dependabot bot and others added 24 commits November 19, 2024 13:24
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.10.1 to 2.10.2.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@91182cc...0080882)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…step-security/harden-runner-2.10.2

PiperOrigin-RevId: 697981775
PiperOrigin-RevId: 698357330
PiperOrigin-RevId: 698685120
Also reduce #if in mainline by factoring into helper functions, share code between Linux and FreeBSD
Use anon namespace instead of static

PiperOrigin-RevId: 699906189
PiperOrigin-RevId: 699936076
The test passes with the most recent clang.

PiperOrigin-RevId: 700385250
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).

PiperOrigin-RevId: 700701299
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).

PiperOrigin-RevId: 700938851
Provide DFromM on all targets except SVE/RVV.
Also split mask_test into mask_set_test,
remove unused overload in scalar,
modernize overloads (SFINAE instead of type tags).
arm_sve required moving some sections earlier before their first usage.

PiperOrigin-RevId: 701919058
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@0c45773...1bd1e32)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…actions/cache-4.2.0

PiperOrigin-RevId: 703468488
PiperOrigin-RevId: 705134221
copybara-github and others added 25 commits January 20, 2025 07:28
…step-security/harden-runner-2.10.4

PiperOrigin-RevId: 717528316
PiperOrigin-RevId: 717590393
--
fa07d18 by scuzqy <[email protected]>:

Resolve TODO in aligned_allocator

And updated corresponding test.
AllocateAligned was designed to take POD types only.

COPYBARA_INTEGRATE_REVIEW=google#2298 from scuzqy:AlignedAllocatorPOD fa07d18
PiperOrigin-RevId: 717822922
PiperOrigin-RevId: 720535765
PiperOrigin-RevId: 720561925
Remove OrZero suffixes for consistency
Drop duplication of generic implementation
Remove OrZero suffixes for consistency
Convert SqrtLower into MaskedSqrtOr
Add TODO comments about GetExponent to x86_512 and ppc_vsx
…t_promote_demote

PiperOrigin-RevId: 720897646
Remove MulLower
Use MaskedMulOr instead
Replace MulAddLower with MaskedMulAddOr
…d_arithmetic

PiperOrigin-RevId: 720957423
Remove OrZero suffixes and reorder arguments for consistency
Rename Cplx* ops to Complex* for legibility
Fuse into MulAdd in generic implementation
@wbb-ccl wbb-ccl force-pushed the cc_up_complex_arithmetic branch from 8a57a7a to 10312bb Compare January 30, 2025 11:12
wbb-ccl pushed a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.