GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cleanup: normalize named constants in LAPACK *equb routines by nakatamaho · Pull Request #1227 · Reference-LAPACK/lapack

Conversation

@nakatamaho

@nakatamaho nakatamaho commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR continues the named-constant cleanup in LAPACK by normalizing
constant declarations and replacing hard-coded numeric literals in the
affected *equb routines.

In particular, it:

  • normalizes parameter declaration order such as ZERO, ONE
  • introduces HALF and TWO where needed
  • replaces hard-coded 0.0, 0.5, 1.0, and 2.0 literals with
    the corresponding named constants in routine bodies

The updates are applied consistently across the affected real/complex
and single/double-precision *equb variants.

No functional change is intended.

Rationale

These routines already use named constants, but the usage was not fully
consistent across variants. Normalizing the declarations and using the
same named constants in expressions makes the source easier to compare,
review, and maintain across typed implementations.

Affected routines

cgbequb, cgeequb, cheequb, cpoequb, csyequb,
dgbequb, dgeequb, dpoequb, dsyequb,
sgbequb, sgeequb, spoequb, ssyequb,
zgbequb, zgeequb, zheequb, zpoequb, zsyequb.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nakatamaho
cleanup: second batch of named-constant normalization for LAPACK *equ…
812f393
…b routines

Continue the named-constant cleanup by replacing hard-coded
0.0/0.5/1.0/2.0 literals with ZERO/HALF/ONE/TWO where
appropriate, and by normalizing parameter declaration order
across the affected *equb routines.

No functional change intended.
@rmlarsen rmlarsen mentioned this pull request Nov 22, 2026
Keep the xGEEQUB and xGBEQUB scale factors in the safe range #1506
Open
2 tasks done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@nakatamaho
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.