float constants

This commit is contained in:
Jean-Marc Valin 2017-10-05 20:07:29 -04:00
parent af93fbd55f
commit 251fc07640
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

View file

@ -66,7 +66,7 @@ static OPUS_INLINE float tansig_approx(float x)
static OPUS_INLINE float sigmoid_approx(float x)
{
return .5 + .5*tansig_approx(.5*x);
return .5f + .5f*tansig_approx(.5f*x);
}
void compute_dense(const DenseLayer *layer, float *output, const float *input)