Skip to content

Commit

Permalink
feat(c-hlapi): add abs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Jan 17, 2025
1 parent e8b51ba commit 495946f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tfhe/src/c_api/high_level_api/integers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,12 @@ macro_rules! create_fhe_int_wrapper_type {
clear_shift_type: $clear_shift_type,
);

impl_unary_fn_on_type!($name =>
/// Returns the absolute value.
///
/// (if x < 0 { -x } else { x })
abs
);

// Define oprf
::paste::paste! {
Expand Down

0 comments on commit 495946f

Please sign in to comment.