mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Add attribution for pow_int_
This commit is contained in:
parent
3b7db3858a
commit
cc0f2ce700
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ pub fn i64_to_f64_(num: i64) -> f64 {
|
|||
num as f64
|
||||
}
|
||||
|
||||
/// Adapted from Rust's core::num module, by the Rust core team,
|
||||
/// licensed under the Apache License, version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
|
||||
///
|
||||
/// Thank you, Rust core team!
|
||||
#[no_mangle]
|
||||
pub fn pow_int_(mut base: i64, mut exp: i64) -> i64 {
|
||||
let mut acc = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue