2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: e_exp.S,v 1.4 1995/05/08 23:47:04 jtc Exp $")
10 /* e^x = 2^(x * log2(e)) */
20 fmulp /* x * log2(e) */
22 frndint /* int(x * log2(e)) */
24 fsubrp /* fract(x * log2(e)) */
25 f2xm1 /* 2^(fract(x * log2(e))) - 1 */
27 faddp /* 2^(fract(x * log2(e))) */