exp(x) = lim(1+x/n)^n // n=10 */
| 73 | exp(x) = lim(1+x/n)^n // n=10 |
| 74 | */ |
| 75 | inline float32x4_t vexpq10_f32(float32x4_t x) |
| 76 | { |
| 77 | x = vmlaq_n_f32(vdupq_n_f32(1.0f), x, 0.0009765625f); // n = 10 |
| 78 | x = vmulq_f32(x, x); |
| 79 | x = vmulq_f32(x, x); |
| 80 | x = vmulq_f32(x, x); |
| 81 | x = vmulq_f32(x, x); |
| 82 | x = vmulq_f32(x, x); |
| 83 | x = vmulq_f32(x, x); |
| 84 | x = vmulq_f32(x, x); |
| 85 | x = vmulq_f32(x, x); |
| 86 | x = vmulq_f32(x, x); |
| 87 | x = vmulq_f32(x, x); |
| 88 | return x; |
| 89 | } |
| 90 | |
| 91 | void tanh_kernel(int i, int id, void* data, const float* input, float* output) |
| 92 | { |