From 9fc2bb60b405ae3c2153c6842972e183f939acc0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 3 Feb 2020 16:09:00 -0800 Subject: libs/sig: add sig_ops_expand convenience This is a specialized version of sig_ops_scale which assumes a min..max range of -1..+1 nvidia register combiners docs describe this operation as "expand normal", and they have several variants, but I don't want to go too crazy here right now. Plain expand it is. --- src/libs/sig/sig.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/sig/sig.h') diff --git a/src/libs/sig/sig.h b/src/libs/sig/sig.h index b54bfb7..f6cb189 100644 --- a/src/libs/sig/sig.h +++ b/src/libs/sig/sig.h @@ -30,6 +30,7 @@ extern sig_ops_t sig_ops_sqr; extern sig_ops_t sig_ops_abs; extern sig_ops_t sig_ops_ceil; extern sig_ops_t sig_ops_clamp; +extern sig_ops_t sig_ops_expand; extern sig_ops_t sig_ops_floor; extern sig_ops_t sig_ops_inv; extern sig_ops_t sig_ops_lerp; -- cgit v1.2.3