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

Add support for -preview=in #32

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Add support for -preview=in #32

merged 2 commits into from
Mar 16, 2023

Conversation

Geod24
Copy link
Contributor

@Geod24 Geod24 commented Mar 4, 2023

Just a bunch of sed, nothing crazy.

@@ -139,333 +139,333 @@ void cblas_xerbla(blasint p, char *rout, char *form, ...);
pure:

///
float cblas_sdsdot(in blasint n, in float alpha, in float *x, in blasint incx, in float *y, in blasint incy);
float cblas_sdsdot(blasint n, float alpha, float *x, blasint incx, float *y, blasint incy);
Copy link
Member

@9il 9il Mar 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in everywhere in mir and in colas means scope const, can't be replaced with anything else

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in doesn't make sense for value types, but important for pointers and ref values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, will change

@PetarKirov
Copy link

ping @Geod24

@Geod24
Copy link
Contributor Author

Geod24 commented Mar 7, 2023

Fixed

@9il
Copy link
Member

9il commented Mar 7, 2023

in have to be replaced with scope const. A simple replacement. This MR does something different.

@Geod24
Copy link
Contributor Author

Geod24 commented Mar 7, 2023

I don't follow. What's the issue ?

@9il
Copy link
Member

9il commented Mar 7, 2023

The PR breaks the API. in has to be replaced with scope const.

///
void cblas_zdotu_sub(in blasint n, in _cdouble *x, in blasint incx, in _cdouble *y, in blasint incy, _cdouble *ret);
void cblas_zdotu_sub(blasint n, _cdouble *x, blasint incx, _cdouble *y, blasint incy, _cdouble *ret);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_cdouble *x become mutable. It should be scope const _cdouble *x

///
void cblas_zaxpy(in blasint n, in ref _cdouble alpha, in _cdouble *x, in blasint incx, _cdouble *y, in blasint incy);
void cblas_zaxpy(blasint n, scope const _cdouble* alpha, _cdouble *x, blasint incx, _cdouble *y, blasint incy);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ref replaced with a pointer?

@Geod24
Copy link
Contributor Author

Geod24 commented Mar 15, 2023

@9il : Can you re-review ? Reverted the ref => pointer changes, it should all be G2G.

@9il 9il merged commit 687d6fb into DlangScience:master Mar 16, 2023
@Geod24 Geod24 deleted the preview-in branch March 16, 2023 18:41
@Geod24
Copy link
Contributor Author

Geod24 commented Mar 16, 2023

Thanks! Can you make a release too, preferably a patch one since the API hasn't changed.

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.

3 participants