Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 16, 2024
2 parents 45bf043 + 7b1922e commit 65250ea
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/neon/gamma_curves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ pub unsafe fn neon_rec709_to_linear(linear: float32x4_t) -> float32x4_t {

#[inline(always)]
pub unsafe fn neon_pure_gamma_function(gamma: float32x4_t, gamma_constant: f32) -> float32x4_t {
let zero_mask = vceqzq_f32(gamma);
let ones = vdupq_n_f32(1f32);
let one_mask = vcgtq_f32(gamma, ones);
let mut rs = vpowq_n_f32(gamma, gamma_constant);
rs = vbslq_f32(zero_mask, vdupq_n_f32(0f32), rs);
rs = vbslq_f32(one_mask, ones, rs);
rs
vpowq_n_f32(gamma, gamma_constant)
}

#[inline(always)]
Expand Down

0 comments on commit 65250ea

Please sign in to comment.