-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the correct LLVM intrinsics for
powi
on *nix.
- Loading branch information
1 parent
8451fd0
commit c1fb729
Showing
2 changed files
with
13 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
actor Main | ||
new create(env: Env) => | ||
let a: F64 = 3.14 | ||
let b: F64 = a.powi(-2) | ||
env.out.print("B is now " + b.string()) | ||
|
||
let c: F32 = 3.14 | ||
let d: F32 = c.powi(-3) | ||
env.out.print("D is now " + d.string()) |