type_mel/i8.rs
1use melodium_core::*;
2use melodium_macro::mel_function;
3
4/// Return the smallest value that can be represented by `i8`.
5///
6/// The smallest value for `i8` is `-128`.
7#[mel_function]
8pub fn min() -> i8 {
9 i8::MIN
10}
11
12/// Return the largest value that can be represented by `i8`.
13///
14/// The largest value for `i8` is `127`.
15#[mel_function]
16pub fn max() -> i8 {
17 i8::MAX
18}