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