e_exp.S (213337) | e_exp.S (217108) |
---|---|
1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 */ 30 31/* 32 * Written by: 33 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34 */ 35 36#include <machine/asm.h> | 1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 */ 30 31/* 32 * Written by: 33 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34 */ 35 36#include <machine/asm.h> |
37__FBSDID("$FreeBSD: head/lib/msun/i387/e_exp.S 213337 2010-10-01 20:14:36Z dim $") | 37__FBSDID("$FreeBSD: head/lib/msun/i387/e_exp.S 217108 2011-01-07 16:13:12Z kib $") |
38 39/* e^x = 2^(x * log2(e)) */ 40ENTRY(exp) 41 /* 42 * If x is +-Inf, then the subtraction would give Inf-Inf = NaN. 43 * Avoid this. Also avoid it if x is NaN for convenience. 44 */ 45 movl 8(%esp),%eax --- 45 unchanged lines hidden (view full) --- 91 jne x_not_minus_Inf 92 fldz 93 ret 94 95x_not_minus_Inf: 96 fldl 4(%esp) 97 ret 98END(exp) | 38 39/* e^x = 2^(x * log2(e)) */ 40ENTRY(exp) 41 /* 42 * If x is +-Inf, then the subtraction would give Inf-Inf = NaN. 43 * Avoid this. Also avoid it if x is NaN for convenience. 44 */ 45 movl 8(%esp),%eax --- 45 unchanged lines hidden (view full) --- 91 jne x_not_minus_Inf 92 fldz 93 ret 94 95x_not_minus_Inf: 96 fldl 4(%esp) 97 ret 98END(exp) |
99 100 .section .note.GNU-stack,"",%progbits |
|