Skip to content

Commit

Permalink
fabs -> fabsf
Browse files Browse the repository at this point in the history
  • Loading branch information
hjabird committed Jul 4, 2019
1 parent 0c32a83 commit d8d9835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/F3D.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE.
#include <math.h>
#include "ocl_F3D.h"

static const float pi_f = (float) 3.14159265359;
static const float pi_f = 3.14159265359f;

CVTX_EXPORT bsv_V3f cvtx_F3D_S2S_vel(
const cvtx_F3D *self,
Expand All @@ -47,7 +47,7 @@ CVTX_EXPORT bsv_V3f cvtx_F3D_S2S_vel(
t22 = bsv_V3f_dot(r2, r0) / bsv_V3f_abs(r2);
t2 = t21 - t22;
/* (NaN != NaN) == TRUE*/
return fabs(t1 * t2) <= 3.40282346e38 ? bsv_V3f_mult(crosstmp, t1 * t2) : bsv_V3f_zero();
return fabsf(t1 * t2) <= 3.40282346e38 ? bsv_V3f_mult(crosstmp, t1 * t2) : bsv_V3f_zero();
}

CVTX_EXPORT bsv_V3f cvtx_F3D_S2S_dvort(
Expand Down

0 comments on commit d8d9835

Please sign in to comment.