-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix macros @which
, @edit
, @functionloc
, @less
for literal_pow
case.
#53713
Conversation
literal_pow
case.@which
, @edit
, @functionloc
, @less
for literal_pow
case.
Can somebody have a look at this tiny but valuable improvement of |
I think this is great and much needed, but I'm quite puzzled why Lines 2683 to 2685 in 09400e4
So why is But flisp does use a different type for values between 2^61-2^63. And depending on the path we take to lowering, Julia boxes these large values into opaque pointers instead of flisp's c primitives when going from a Julia Expr to flisp and back. And then the opaque pointer is no longer
But this is all a non-sequitur to this PR — and this PR does accurately reflect the status quo as far as I can see. |
@mbauman: Yes, this PR is to reflect the current behavior of the compiler(s). Of course that has to be adapted, in case that should change. |
bump |
The macros
@which
,@edit
,@functionloc
,@less
fromInteractiveUtils
, ifapplied to the case of literal powers, like
a^12
or2^-1
used to direct theuser to function
^
, while the compiler generates code forBase.literal_pow
.Now the user is shown the code, the compiler generates.
Fixes #53691
Fixes #43337
Fixes #21014
Observation: the
literal_pow
code is generated only ifx
is a signed integer constant with-2^61 <= x < 2^61
.