Add attribution for pow_int_

This commit is contained in:
Richard Feldman 2020-09-17 20:27:50 -04:00
parent 3b7db3858a
commit cc0f2ce700

View file

@ -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;