Skip to content

Commit

Permalink
Added missing float suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RikshaDriver authored Apr 4, 2023
1 parent 552768c commit 792802a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Inverse-S-Curves.dctl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ __DEVICE__ float invTanFunc(float s_H, float s_S, float s_M, float x) {
}

__DEVICE__ float invAbFunc(float s_H, float s_S, float s_M, float x) {
if(x >= 0.5f * s_H) return (- s_H * s_S * s_M + 0.5 * s_H + x * s_S * s_M - x) / (s_S * (x - s_H));
else return -1.0f * ((0.5 * s_H - x * s_S * s_M - x) / (x * s_S));
if(x >= 0.5f * s_H) return (- s_H * s_S * s_M + 0.5f * s_H + x * s_S * s_M - x) / (s_S * (x - s_H));
else return -1.0f * ((0.5f * s_H - x * s_S * s_M - x) / (x * s_S));
}

__DEVICE__ float invAlFunc(float s_H, float s_S, float s_M, float x) {
Expand Down

0 comments on commit 792802a

Please sign in to comment.