-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
source/cblas/cblas.di
Outdated
@@ -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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, will change
ping @Geod24 |
Fixed |
|
I don't follow. What's the issue ? |
The PR breaks the API. |
source/cblas/cblas.di
Outdated
/// | ||
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); |
There was a problem hiding this comment.
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
source/cblas/cblas.di
Outdated
/// | ||
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); |
There was a problem hiding this comment.
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?
@9il : Can you re-review ? Reverted the |
Thanks! Can you make a release too, preferably a patch one since the API hasn't changed. |
Just a bunch of sed, nothing crazy.