-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract exponentiation operation from mathPow function.
Summary: In anticipation of adding support for `**`, we move the exponentiation logic out of `mathPow` and place it in `expOp`, where it will be used to avoid duplicating logic in the interpreter loop. Reviewed By: dulinriley Differential Revision: D16628558 fbshipit-source-id: 83e3cfd3c41525498b2e13e31f2164f5d1947cfc
- Loading branch information
1 parent
f313c1b
commit c0d849e
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters