hotspot/src/cpu/x86/vm/macroAssembler_x86_libm.cpp
author goetz
Mon, 07 Dec 2015 15:42:47 +0100
changeset 35112 b3c4347bb751
parent 33465 6063f28a6efb
child 35146 9ebfec283f56
permissions -rw-r--r--
8144466: ppc64: fix argument passing through opto stubs. Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33089
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     1
/*
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     2
 * Copyright (c) 2015, Intel Corporation.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     3
 * Intel Math Library (LIBM) Source Code
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     4
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     5
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     6
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     7
 * This code is free software; you can redistribute it and/or modify it
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     8
 * under the terms of the GNU General Public License version 2 only, as
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
     9
 * published by the Free Software Foundation.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    10
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    15
 * accompanied this code).
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    16
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    20
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    23
 * questions.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    24
 *
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    25
 */
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    26
33465
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    27
#include "precompiled.hpp"
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    28
#include "asm/assembler.hpp"
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    29
#include "asm/assembler.inline.hpp"
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    30
#include "macroAssembler_x86.hpp"
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    31
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    32
#ifdef _MSC_VER
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    33
#define ALIGNED_(x) __declspec(align(x))
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    34
#else
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    35
#define ALIGNED_(x) __attribute__ ((aligned(x)))
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    36
#endif
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    37
33089
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    38
/******************************************************************************/
33465
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
    39
//                     ALGORITHM DESCRIPTION - EXP()
33089
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    40
//                     ---------------------
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    41
//
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    42
// Description:
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    43
//  Let K = 64 (table size).
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    44
//        x    x/log(2)     n
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    45
//       e  = 2          = 2 * T[j] * (1 + P(y))
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    46
//  where
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    47
//       x = m*log(2)/K + y,    y in [-log(2)/K..log(2)/K]
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    48
//       m = n*K + j,           m,n,j - signed integer, j in [-K/2..K/2]
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    49
//                  j/K
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    50
//       values of 2   are tabulated as T[j] = T_hi[j] ( 1 + T_lo[j]).
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    51
//
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    52
//       P(y) is a minimax polynomial approximation of exp(x)-1
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    53
//       on small interval [-log(2)/K..log(2)/K] (were calculated by Maple V).
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    54
//
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    55
//  To avoid problems with arithmetic overflow and underflow,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    56
//            n                        n1  n2
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    57
//  value of 2  is safely computed as 2 * 2 where n1 in [-BIAS/2..BIAS/2]
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    58
//  where BIAS is a value of exponent bias.
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    59
//
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    60
// Special cases:
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    61
//  exp(NaN) = NaN
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    62
//  exp(+INF) = +INF
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    63
//  exp(-INF) = 0
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    64
//  exp(x) = 1 for subnormals
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    65
//  for finite argument, only exp(0)=1 is exact
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    66
//  For IEEE double
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    67
//    if x >  709.782712893383973096 then exp(x) overflow
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    68
//    if x < -745.133219101941108420 then exp(x) underflow
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    69
//
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    70
/******************************************************************************/
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    71
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    72
#ifdef _LP64
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    73
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    74
ALIGNED_(16) juint _cv[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    75
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    76
    0x652b82feUL, 0x40571547UL, 0x652b82feUL, 0x40571547UL, 0xfefa0000UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    77
    0x3f862e42UL, 0xfefa0000UL, 0x3f862e42UL, 0xbc9e3b3aUL, 0x3d1cf79aUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    78
    0xbc9e3b3aUL, 0x3d1cf79aUL, 0xfffffffeUL, 0x3fdfffffUL, 0xfffffffeUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    79
    0x3fdfffffUL, 0xe3289860UL, 0x3f56c15cUL, 0x555b9e25UL, 0x3fa55555UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    80
    0xc090cf0fUL, 0x3f811115UL, 0x55548ba1UL, 0x3fc55555UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    81
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    82
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    83
ALIGNED_(16) juint _shifter[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    84
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    85
    0x00000000UL, 0x43380000UL, 0x00000000UL, 0x43380000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    86
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    87
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    88
ALIGNED_(16) juint _mmask[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    89
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    90
    0xffffffc0UL, 0x00000000UL, 0xffffffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    91
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    92
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    93
ALIGNED_(16) juint _bias[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    94
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    95
    0x0000ffc0UL, 0x00000000UL, 0x0000ffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    96
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    97
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    98
ALIGNED_(16) juint _Tbl_addr[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
    99
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   100
    0x00000000UL, 0x00000000UL, 0x00000000UL, 0x00000000UL, 0x0e03754dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   101
    0x3cad7bbfUL, 0x3e778060UL, 0x00002c9aUL, 0x3567f613UL, 0x3c8cd252UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   102
    0xd3158574UL, 0x000059b0UL, 0x61e6c861UL, 0x3c60f74eUL, 0x18759bc8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   103
    0x00008745UL, 0x5d837b6cUL, 0x3c979aa6UL, 0x6cf9890fUL, 0x0000b558UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   104
    0x702f9cd1UL, 0x3c3ebe3dUL, 0x32d3d1a2UL, 0x0000e3ecUL, 0x1e63bcd8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   105
    0x3ca3516eUL, 0xd0125b50UL, 0x00011301UL, 0x26f0387bUL, 0x3ca4c554UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   106
    0xaea92ddfUL, 0x0001429aUL, 0x62523fb6UL, 0x3ca95153UL, 0x3c7d517aUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   107
    0x000172b8UL, 0x3f1353bfUL, 0x3c8b898cUL, 0xeb6fcb75UL, 0x0001a35bUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   108
    0x3e3a2f5fUL, 0x3c9aecf7UL, 0x3168b9aaUL, 0x0001d487UL, 0x44a6c38dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   109
    0x3c8a6f41UL, 0x88628cd6UL, 0x0002063bUL, 0xe3a8a894UL, 0x3c968efdUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   110
    0x6e756238UL, 0x0002387aUL, 0x981fe7f2UL, 0x3c80472bUL, 0x65e27cddUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   111
    0x00026b45UL, 0x6d09ab31UL, 0x3c82f7e1UL, 0xf51fdee1UL, 0x00029e9dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   112
    0x720c0ab3UL, 0x3c8b3782UL, 0xa6e4030bUL, 0x0002d285UL, 0x4db0abb6UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   113
    0x3c834d75UL, 0x0a31b715UL, 0x000306feUL, 0x5dd3f84aUL, 0x3c8fdd39UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   114
    0xb26416ffUL, 0x00033c08UL, 0xcc187d29UL, 0x3ca12f8cUL, 0x373aa9caUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   115
    0x000371a7UL, 0x738b5e8bUL, 0x3ca7d229UL, 0x34e59ff6UL, 0x0003a7dbUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   116
    0xa72a4c6dUL, 0x3c859f48UL, 0x4c123422UL, 0x0003dea6UL, 0x259d9205UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   117
    0x3ca8b846UL, 0x21f72e29UL, 0x0004160aUL, 0x60c2ac12UL, 0x3c4363edUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   118
    0x6061892dUL, 0x00044e08UL, 0xdaa10379UL, 0x3c6ecce1UL, 0xb5c13cd0UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   119
    0x000486a2UL, 0xbb7aafb0UL, 0x3c7690ceUL, 0xd5362a27UL, 0x0004bfdaUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   120
    0x9b282a09UL, 0x3ca083ccUL, 0x769d2ca6UL, 0x0004f9b2UL, 0xc1aae707UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   121
    0x3ca509b0UL, 0x569d4f81UL, 0x0005342bUL, 0x18fdd78eUL, 0x3c933505UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   122
    0x36b527daUL, 0x00056f47UL, 0xe21c5409UL, 0x3c9063e1UL, 0xdd485429UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   123
    0x0005ab07UL, 0x2b64c035UL, 0x3c9432e6UL, 0x15ad2148UL, 0x0005e76fUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   124
    0x99f08c0aUL, 0x3ca01284UL, 0xb03a5584UL, 0x0006247eUL, 0x0073dc06UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   125
    0x3c99f087UL, 0x82552224UL, 0x00066238UL, 0x0da05571UL, 0x3c998d4dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   126
    0x667f3bccUL, 0x0006a09eUL, 0x86ce4786UL, 0x3ca52bb9UL, 0x3c651a2eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   127
    0x0006dfb2UL, 0x206f0dabUL, 0x3ca32092UL, 0xe8ec5f73UL, 0x00071f75UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   128
    0x8e17a7a6UL, 0x3ca06122UL, 0x564267c8UL, 0x00075febUL, 0x461e9f86UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   129
    0x3ca244acUL, 0x73eb0186UL, 0x0007a114UL, 0xabd66c55UL, 0x3c65ebe1UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   130
    0x36cf4e62UL, 0x0007e2f3UL, 0xbbff67d0UL, 0x3c96fe9fUL, 0x994cce12UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   131
    0x00082589UL, 0x14c801dfUL, 0x3c951f14UL, 0x9b4492ecUL, 0x000868d9UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   132
    0xc1f0eab4UL, 0x3c8db72fUL, 0x422aa0dbUL, 0x0008ace5UL, 0x59f35f44UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   133
    0x3c7bf683UL, 0x99157736UL, 0x0008f1aeUL, 0x9c06283cUL, 0x3ca360baUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   134
    0xb0cdc5e4UL, 0x00093737UL, 0x20f962aaUL, 0x3c95e8d1UL, 0x9fde4e4fUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   135
    0x00097d82UL, 0x2b91ce27UL, 0x3c71affcUL, 0x82a3f090UL, 0x0009c491UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   136
    0x589a2ebdUL, 0x3c9b6d34UL, 0x7b5de564UL, 0x000a0c66UL, 0x9ab89880UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   137
    0x3c95277cUL, 0xb23e255cUL, 0x000a5503UL, 0x6e735ab3UL, 0x3c846984UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   138
    0x5579fdbfUL, 0x000a9e6bUL, 0x92cb3387UL, 0x3c8c1a77UL, 0x995ad3adUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   139
    0x000ae89fUL, 0xdc2d1d96UL, 0x3ca22466UL, 0xb84f15faUL, 0x000b33a2UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   140
    0xb19505aeUL, 0x3ca1112eUL, 0xf2fb5e46UL, 0x000b7f76UL, 0x0a5fddcdUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   141
    0x3c74ffd7UL, 0x904bc1d2UL, 0x000bcc1eUL, 0x30af0cb3UL, 0x3c736eaeUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   142
    0xdd85529cUL, 0x000c199bUL, 0xd10959acUL, 0x3c84e08fUL, 0x2e57d14bUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   143
    0x000c67f1UL, 0x6c921968UL, 0x3c676b2cUL, 0xdcef9069UL, 0x000cb720UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   144
    0x36df99b3UL, 0x3c937009UL, 0x4a07897bUL, 0x000d072dUL, 0xa63d07a7UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   145
    0x3c74a385UL, 0xdcfba487UL, 0x000d5818UL, 0xd5c192acUL, 0x3c8e5a50UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   146
    0x03db3285UL, 0x000da9e6UL, 0x1c4a9792UL, 0x3c98bb73UL, 0x337b9b5eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   147
    0x000dfc97UL, 0x603a88d3UL, 0x3c74b604UL, 0xe78b3ff6UL, 0x000e502eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   148
    0x92094926UL, 0x3c916f27UL, 0xa2a490d9UL, 0x000ea4afUL, 0x41aa2008UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   149
    0x3c8ec3bcUL, 0xee615a27UL, 0x000efa1bUL, 0x31d185eeUL, 0x3c8a64a9UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   150
    0x5b6e4540UL, 0x000f5076UL, 0x4d91cd9dUL, 0x3c77893bUL, 0x819e90d8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   151
    0x000fa7c1UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   152
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   153
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   154
ALIGNED_(16) juint _ALLONES[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   155
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   156
    0xffffffffUL, 0xffffffffUL, 0xffffffffUL, 0xffffffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   157
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   158
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   159
ALIGNED_(16) juint _ebias[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   160
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   161
    0x00000000UL, 0x3ff00000UL, 0x00000000UL, 0x3ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   162
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   163
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   164
ALIGNED_(4) juint _XMAX[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   165
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   166
    0xffffffffUL, 0x7fefffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   167
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   168
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   169
ALIGNED_(4) juint _XMIN[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   170
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   171
    0x00000000UL, 0x00100000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   172
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   173
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   174
ALIGNED_(4) juint _INF[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   175
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   176
    0x00000000UL, 0x7ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   177
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   178
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   179
ALIGNED_(4) juint _ZERO[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   180
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   181
    0x00000000UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   182
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   183
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   184
ALIGNED_(4) juint _ONE_val[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   185
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   186
    0x00000000UL, 0x3ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   187
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   188
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   189
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   190
// Registers:
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   191
// input: xmm0
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   192
// scratch: xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   193
//          rax, rdx, rcx, tmp - r11
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   194
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   195
// Code generated by Intel C compiler for LIBM library
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   196
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   197
void MacroAssembler::fast_exp(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xmm2, XMMRegister xmm3, XMMRegister xmm4, XMMRegister xmm5, XMMRegister xmm6, XMMRegister xmm7, Register eax, Register ecx, Register edx, Register tmp) {
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   198
  Label L_2TAG_PACKET_0_0_2, L_2TAG_PACKET_1_0_2, L_2TAG_PACKET_2_0_2, L_2TAG_PACKET_3_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   199
  Label L_2TAG_PACKET_4_0_2, L_2TAG_PACKET_5_0_2, L_2TAG_PACKET_6_0_2, L_2TAG_PACKET_7_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   200
  Label L_2TAG_PACKET_8_0_2, L_2TAG_PACKET_9_0_2, L_2TAG_PACKET_10_0_2, L_2TAG_PACKET_11_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   201
  Label L_2TAG_PACKET_12_0_2, B1_3, B1_5, start;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   202
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   203
  assert_different_registers(tmp, eax, ecx, edx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   204
  jmp(start);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   205
  address cv = (address)_cv;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   206
  address Shifter = (address)_shifter;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   207
  address mmask = (address)_mmask;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   208
  address bias = (address)_bias;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   209
  address Tbl_addr = (address)_Tbl_addr;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   210
  address ALLONES = (address)_ALLONES;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   211
  address ebias = (address)_ebias;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   212
  address XMAX = (address)_XMAX;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   213
  address XMIN = (address)_XMIN;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   214
  address INF = (address)_INF;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   215
  address ZERO = (address)_ZERO;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   216
  address ONE_val = (address)_ONE_val;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   217
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   218
  bind(start);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   219
  subq(rsp, 24);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   220
  movsd(Address(rsp, 8), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   221
  unpcklpd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   222
  movdqu(xmm1, ExternalAddress(cv));       // 0x652b82feUL, 0x40571547UL, 0x652b82feUL, 0x40571547UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   223
  movdqu(xmm6, ExternalAddress(Shifter));  // 0x00000000UL, 0x43380000UL, 0x00000000UL, 0x43380000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   224
  movdqu(xmm2, ExternalAddress(16+cv));    // 0xfefa0000UL, 0x3f862e42UL, 0xfefa0000UL, 0x3f862e42UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   225
  movdqu(xmm3, ExternalAddress(32+cv));    // 0xbc9e3b3aUL, 0x3d1cf79aUL, 0xbc9e3b3aUL, 0x3d1cf79aUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   226
  pextrw(eax, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   227
  andl(eax, 32767);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   228
  movl(edx, 16527);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   229
  subl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   230
  subl(eax, 15504);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   231
  orl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   232
  cmpl(edx, INT_MIN);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   233
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_0_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   234
  mulpd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   235
  addpd(xmm1, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   236
  movapd(xmm7, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   237
  subpd(xmm1, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   238
  mulpd(xmm2, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   239
  movdqu(xmm4, ExternalAddress(64+cv));    // 0xe3289860UL, 0x3f56c15cUL, 0x555b9e25UL, 0x3fa55555UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   240
  mulpd(xmm3, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   241
  movdqu(xmm5, ExternalAddress(80+cv));    // 0xc090cf0fUL, 0x3f811115UL, 0x55548ba1UL, 0x3fc55555UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   242
  subpd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   243
  movdl(eax, xmm7);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   244
  movl(ecx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   245
  andl(ecx, 63);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   246
  shll(ecx, 4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   247
  sarl(eax, 6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   248
  movl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   249
  movdqu(xmm6, ExternalAddress(mmask));    // 0xffffffc0UL, 0x00000000UL, 0xffffffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   250
  pand(xmm7, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   251
  movdqu(xmm6, ExternalAddress(bias));     // 0x0000ffc0UL, 0x00000000UL, 0x0000ffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   252
  paddq(xmm7, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   253
  psllq(xmm7, 46);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   254
  subpd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   255
  lea(tmp, ExternalAddress(Tbl_addr));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   256
  movdqu(xmm2, Address(ecx,tmp));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   257
  mulpd(xmm4, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   258
  movapd(xmm6, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   259
  movapd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   260
  mulpd(xmm6, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   261
  mulpd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   262
  addpd(xmm5, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   263
  mulsd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   264
  mulpd(xmm6, ExternalAddress(48+cv));     // 0xfffffffeUL, 0x3fdfffffUL, 0xfffffffeUL, 0x3fdfffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   265
  addsd(xmm1, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   266
  unpckhpd(xmm2, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   267
  mulpd(xmm0, xmm5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   268
  addsd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   269
  por(xmm2, xmm7);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   270
  unpckhpd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   271
  addsd(xmm0, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   272
  addsd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   273
  addl(edx, 894);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   274
  cmpl(edx, 1916);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   275
  jcc (Assembler::above, L_2TAG_PACKET_1_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   276
  mulsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   277
  addsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   278
  jmp (B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   279
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   280
  bind(L_2TAG_PACKET_1_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   281
  xorpd(xmm3, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   282
  movdqu(xmm4, ExternalAddress(ALLONES));  // 0xffffffffUL, 0xffffffffUL, 0xffffffffUL, 0xffffffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   283
  movl(edx, -1022);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   284
  subl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   285
  movdl(xmm5, edx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   286
  psllq(xmm4, xmm5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   287
  movl(ecx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   288
  sarl(eax, 1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   289
  pinsrw(xmm3, eax, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   290
  movdqu(xmm6, ExternalAddress(ebias));    // 0x00000000UL, 0x3ff00000UL, 0x00000000UL, 0x3ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   291
  psllq(xmm3, 4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   292
  psubd(xmm2, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   293
  mulsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   294
  cmpl(edx, 52);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   295
  jcc(Assembler::greater, L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   296
  pand(xmm4, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   297
  paddd(xmm3, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   298
  subsd(xmm2, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   299
  addsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   300
  cmpl(ecx, 1023);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   301
  jcc(Assembler::greaterEqual, L_2TAG_PACKET_3_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   302
  pextrw(ecx, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   303
  andl(ecx, 32768);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   304
  orl(edx, ecx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   305
  cmpl(edx, 0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   306
  jcc(Assembler::equal, L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   307
  movapd(xmm6, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   308
  addsd(xmm0, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   309
  mulsd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   310
  pextrw(ecx, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   311
  andl(ecx, 32752);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   312
  cmpl(ecx, 0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   313
  jcc(Assembler::equal, L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   314
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   315
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   316
  bind(L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   317
  mulsd(xmm6, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   318
  mulsd(xmm4, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   319
  movdqu(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   320
  pxor(xmm6, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   321
  psrad(xmm6, 31);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   322
  pshufd(xmm6, xmm6, 85);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   323
  psllq(xmm0, 1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   324
  psrlq(xmm0, 1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   325
  pxor(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   326
  psrlq(xmm6, 63);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   327
  paddq(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   328
  paddq(xmm0, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   329
  movl(Address(rsp,0), 15);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   330
  jmp(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   331
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   332
  bind(L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   333
  addsd(xmm0, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   334
  mulsd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   335
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   336
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   337
  bind(L_2TAG_PACKET_3_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   338
  addsd(xmm0, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   339
  mulsd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   340
  pextrw(ecx, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   341
  andl(ecx, 32752);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   342
  cmpl(ecx, 32752);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   343
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_7_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   344
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   345
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   346
  bind(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   347
  paddd(xmm3, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   348
  addpd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   349
  mulsd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   350
  movl(Address(rsp,0), 15);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   351
  jmp(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   352
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   353
  bind(L_2TAG_PACKET_8_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   354
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   355
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_9_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   356
  movl(eax, Address(rsp,12));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   357
  cmpl(eax, INT_MIN);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   358
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_10_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   359
  movsd(xmm0, ExternalAddress(XMAX));      // 0xffffffffUL, 0x7fefffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   360
  mulsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   361
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   362
  bind(L_2TAG_PACKET_7_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   363
  movl(Address(rsp,0), 14);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   364
  jmp(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   365
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   366
  bind(L_2TAG_PACKET_10_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   367
  movsd(xmm0, ExternalAddress(XMIN));      // 0x00000000UL, 0x00100000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   368
  mulsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   369
  movl(Address(rsp,0), 15);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   370
  jmp(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   371
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   372
  bind(L_2TAG_PACKET_9_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   373
  movl(edx, Address(rsp,8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   374
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   375
  jcc(Assembler::above, L_2TAG_PACKET_11_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   376
  cmpl(edx, 0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   377
  jcc(Assembler::notEqual, L_2TAG_PACKET_11_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   378
  movl(eax, Address(rsp,12));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   379
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   380
  jcc(Assembler::notEqual, L_2TAG_PACKET_12_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   381
  movsd(xmm0, ExternalAddress(INF));       // 0x00000000UL, 0x7ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   382
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   383
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   384
  bind(L_2TAG_PACKET_12_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   385
  movsd(xmm0, ExternalAddress(ZERO));      // 0x00000000UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   386
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   387
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   388
  bind(L_2TAG_PACKET_11_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   389
  movsd(xmm0, Address(rsp, 8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   390
  addsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   391
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   392
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   393
  bind(L_2TAG_PACKET_0_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   394
  movl(eax, Address(rsp, 12));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   395
  andl(eax, 2147483647);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   396
  cmpl(eax, 1083179008);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   397
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_8_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   398
  movsd(Address(rsp, 8), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   399
  addsd(xmm0, ExternalAddress(ONE_val));   // 0x00000000UL, 0x3ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   400
  jmp(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   401
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   402
  bind(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   403
  movq(Address(rsp, 16), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   404
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   405
  bind(B1_3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   406
  movq(xmm0, Address(rsp, 16));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   407
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   408
  bind(B1_5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   409
  addq(rsp, 24);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   410
}
33465
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   411
33089
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   412
#endif
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   413
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   414
#ifndef _LP64
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   415
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   416
ALIGNED_(16) juint _static_const_table[] =
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   417
{
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   418
    0x00000000UL, 0xfff00000UL, 0x00000000UL, 0xfff00000UL, 0xffffffc0UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   419
    0x00000000UL, 0xffffffc0UL, 0x00000000UL, 0x0000ffc0UL, 0x00000000UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   420
    0x0000ffc0UL, 0x00000000UL, 0x00000000UL, 0x43380000UL, 0x00000000UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   421
    0x43380000UL, 0x652b82feUL, 0x40571547UL, 0x652b82feUL, 0x40571547UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   422
    0xfefa0000UL, 0x3f862e42UL, 0xfefa0000UL, 0x3f862e42UL, 0xbc9e3b3aUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   423
    0x3d1cf79aUL, 0xbc9e3b3aUL, 0x3d1cf79aUL, 0xfffffffeUL, 0x3fdfffffUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   424
    0xfffffffeUL, 0x3fdfffffUL, 0xe3289860UL, 0x3f56c15cUL, 0x555b9e25UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   425
    0x3fa55555UL, 0xc090cf0fUL, 0x3f811115UL, 0x55548ba1UL, 0x3fc55555UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   426
    0x00000000UL, 0x00000000UL, 0x00000000UL, 0x00000000UL, 0x0e03754dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   427
    0x3cad7bbfUL, 0x3e778060UL, 0x00002c9aUL, 0x3567f613UL, 0x3c8cd252UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   428
    0xd3158574UL, 0x000059b0UL, 0x61e6c861UL, 0x3c60f74eUL, 0x18759bc8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   429
    0x00008745UL, 0x5d837b6cUL, 0x3c979aa6UL, 0x6cf9890fUL, 0x0000b558UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   430
    0x702f9cd1UL, 0x3c3ebe3dUL, 0x32d3d1a2UL, 0x0000e3ecUL, 0x1e63bcd8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   431
    0x3ca3516eUL, 0xd0125b50UL, 0x00011301UL, 0x26f0387bUL, 0x3ca4c554UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   432
    0xaea92ddfUL, 0x0001429aUL, 0x62523fb6UL, 0x3ca95153UL, 0x3c7d517aUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   433
    0x000172b8UL, 0x3f1353bfUL, 0x3c8b898cUL, 0xeb6fcb75UL, 0x0001a35bUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   434
    0x3e3a2f5fUL, 0x3c9aecf7UL, 0x3168b9aaUL, 0x0001d487UL, 0x44a6c38dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   435
    0x3c8a6f41UL, 0x88628cd6UL, 0x0002063bUL, 0xe3a8a894UL, 0x3c968efdUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   436
    0x6e756238UL, 0x0002387aUL, 0x981fe7f2UL, 0x3c80472bUL, 0x65e27cddUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   437
    0x00026b45UL, 0x6d09ab31UL, 0x3c82f7e1UL, 0xf51fdee1UL, 0x00029e9dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   438
    0x720c0ab3UL, 0x3c8b3782UL, 0xa6e4030bUL, 0x0002d285UL, 0x4db0abb6UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   439
    0x3c834d75UL, 0x0a31b715UL, 0x000306feUL, 0x5dd3f84aUL, 0x3c8fdd39UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   440
    0xb26416ffUL, 0x00033c08UL, 0xcc187d29UL, 0x3ca12f8cUL, 0x373aa9caUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   441
    0x000371a7UL, 0x738b5e8bUL, 0x3ca7d229UL, 0x34e59ff6UL, 0x0003a7dbUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   442
    0xa72a4c6dUL, 0x3c859f48UL, 0x4c123422UL, 0x0003dea6UL, 0x259d9205UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   443
    0x3ca8b846UL, 0x21f72e29UL, 0x0004160aUL, 0x60c2ac12UL, 0x3c4363edUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   444
    0x6061892dUL, 0x00044e08UL, 0xdaa10379UL, 0x3c6ecce1UL, 0xb5c13cd0UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   445
    0x000486a2UL, 0xbb7aafb0UL, 0x3c7690ceUL, 0xd5362a27UL, 0x0004bfdaUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   446
    0x9b282a09UL, 0x3ca083ccUL, 0x769d2ca6UL, 0x0004f9b2UL, 0xc1aae707UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   447
    0x3ca509b0UL, 0x569d4f81UL, 0x0005342bUL, 0x18fdd78eUL, 0x3c933505UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   448
    0x36b527daUL, 0x00056f47UL, 0xe21c5409UL, 0x3c9063e1UL, 0xdd485429UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   449
    0x0005ab07UL, 0x2b64c035UL, 0x3c9432e6UL, 0x15ad2148UL, 0x0005e76fUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   450
    0x99f08c0aUL, 0x3ca01284UL, 0xb03a5584UL, 0x0006247eUL, 0x0073dc06UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   451
    0x3c99f087UL, 0x82552224UL, 0x00066238UL, 0x0da05571UL, 0x3c998d4dUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   452
    0x667f3bccUL, 0x0006a09eUL, 0x86ce4786UL, 0x3ca52bb9UL, 0x3c651a2eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   453
    0x0006dfb2UL, 0x206f0dabUL, 0x3ca32092UL, 0xe8ec5f73UL, 0x00071f75UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   454
    0x8e17a7a6UL, 0x3ca06122UL, 0x564267c8UL, 0x00075febUL, 0x461e9f86UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   455
    0x3ca244acUL, 0x73eb0186UL, 0x0007a114UL, 0xabd66c55UL, 0x3c65ebe1UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   456
    0x36cf4e62UL, 0x0007e2f3UL, 0xbbff67d0UL, 0x3c96fe9fUL, 0x994cce12UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   457
    0x00082589UL, 0x14c801dfUL, 0x3c951f14UL, 0x9b4492ecUL, 0x000868d9UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   458
    0xc1f0eab4UL, 0x3c8db72fUL, 0x422aa0dbUL, 0x0008ace5UL, 0x59f35f44UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   459
    0x3c7bf683UL, 0x99157736UL, 0x0008f1aeUL, 0x9c06283cUL, 0x3ca360baUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   460
    0xb0cdc5e4UL, 0x00093737UL, 0x20f962aaUL, 0x3c95e8d1UL, 0x9fde4e4fUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   461
    0x00097d82UL, 0x2b91ce27UL, 0x3c71affcUL, 0x82a3f090UL, 0x0009c491UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   462
    0x589a2ebdUL, 0x3c9b6d34UL, 0x7b5de564UL, 0x000a0c66UL, 0x9ab89880UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   463
    0x3c95277cUL, 0xb23e255cUL, 0x000a5503UL, 0x6e735ab3UL, 0x3c846984UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   464
    0x5579fdbfUL, 0x000a9e6bUL, 0x92cb3387UL, 0x3c8c1a77UL, 0x995ad3adUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   465
    0x000ae89fUL, 0xdc2d1d96UL, 0x3ca22466UL, 0xb84f15faUL, 0x000b33a2UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   466
    0xb19505aeUL, 0x3ca1112eUL, 0xf2fb5e46UL, 0x000b7f76UL, 0x0a5fddcdUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   467
    0x3c74ffd7UL, 0x904bc1d2UL, 0x000bcc1eUL, 0x30af0cb3UL, 0x3c736eaeUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   468
    0xdd85529cUL, 0x000c199bUL, 0xd10959acUL, 0x3c84e08fUL, 0x2e57d14bUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   469
    0x000c67f1UL, 0x6c921968UL, 0x3c676b2cUL, 0xdcef9069UL, 0x000cb720UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   470
    0x36df99b3UL, 0x3c937009UL, 0x4a07897bUL, 0x000d072dUL, 0xa63d07a7UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   471
    0x3c74a385UL, 0xdcfba487UL, 0x000d5818UL, 0xd5c192acUL, 0x3c8e5a50UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   472
    0x03db3285UL, 0x000da9e6UL, 0x1c4a9792UL, 0x3c98bb73UL, 0x337b9b5eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   473
    0x000dfc97UL, 0x603a88d3UL, 0x3c74b604UL, 0xe78b3ff6UL, 0x000e502eUL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   474
    0x92094926UL, 0x3c916f27UL, 0xa2a490d9UL, 0x000ea4afUL, 0x41aa2008UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   475
    0x3c8ec3bcUL, 0xee615a27UL, 0x000efa1bUL, 0x31d185eeUL, 0x3c8a64a9UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   476
    0x5b6e4540UL, 0x000f5076UL, 0x4d91cd9dUL, 0x3c77893bUL, 0x819e90d8UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   477
    0x000fa7c1UL, 0x00000000UL, 0x3ff00000UL, 0x00000000UL, 0x7ff00000UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   478
    0x00000000UL, 0x00000000UL, 0xffffffffUL, 0x7fefffffUL, 0x00000000UL,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   479
    0x00100000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   480
};
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   481
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   482
//registers,
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   483
// input: (rbp + 8)
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   484
// scratch: xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   485
//          rax, rdx, rcx, rbx (tmp)
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   486
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   487
// Code generated by Intel C compiler for LIBM library
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   488
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   489
void MacroAssembler::fast_exp(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xmm2, XMMRegister xmm3, XMMRegister xmm4, XMMRegister xmm5, XMMRegister xmm6, XMMRegister xmm7, Register eax, Register ecx, Register edx, Register tmp) {
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   490
  Label L_2TAG_PACKET_0_0_2, L_2TAG_PACKET_1_0_2, L_2TAG_PACKET_2_0_2, L_2TAG_PACKET_3_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   491
  Label L_2TAG_PACKET_4_0_2, L_2TAG_PACKET_5_0_2, L_2TAG_PACKET_6_0_2, L_2TAG_PACKET_7_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   492
  Label L_2TAG_PACKET_8_0_2, L_2TAG_PACKET_9_0_2, L_2TAG_PACKET_10_0_2, L_2TAG_PACKET_11_0_2;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   493
  Label L_2TAG_PACKET_12_0_2, L_2TAG_PACKET_13_0_2, B1_3, B1_5, start;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   494
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   495
  assert_different_registers(tmp, eax, ecx, edx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   496
  jmp(start);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   497
  address static_const_table = (address)_static_const_table;
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   498
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   499
  bind(start);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   500
  subl(rsp, 120);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   501
  movl(Address(rsp, 64), tmp);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   502
  lea(tmp, ExternalAddress(static_const_table));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   503
  movdqu(xmm0, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   504
  unpcklpd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   505
  movdqu(xmm1, Address(tmp, 64));          // 0x652b82feUL, 0x40571547UL, 0x652b82feUL, 0x40571547UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   506
  movdqu(xmm6, Address(tmp, 48));          // 0x00000000UL, 0x43380000UL, 0x00000000UL, 0x43380000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   507
  movdqu(xmm2, Address(tmp, 80));          // 0xfefa0000UL, 0x3f862e42UL, 0xfefa0000UL, 0x3f862e42UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   508
  movdqu(xmm3, Address(tmp, 96));          // 0xbc9e3b3aUL, 0x3d1cf79aUL, 0xbc9e3b3aUL, 0x3d1cf79aUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   509
  pextrw(eax, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   510
  andl(eax, 32767);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   511
  movl(edx, 16527);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   512
  subl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   513
  subl(eax, 15504);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   514
  orl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   515
  cmpl(edx, INT_MIN);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   516
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_0_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   517
  mulpd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   518
  addpd(xmm1, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   519
  movapd(xmm7, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   520
  subpd(xmm1, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   521
  mulpd(xmm2, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   522
  movdqu(xmm4, Address(tmp, 128));         // 0xe3289860UL, 0x3f56c15cUL, 0x555b9e25UL, 0x3fa55555UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   523
  mulpd(xmm3, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   524
  movdqu(xmm5, Address(tmp, 144));         // 0xc090cf0fUL, 0x3f811115UL, 0x55548ba1UL, 0x3fc55555UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   525
  subpd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   526
  movdl(eax, xmm7);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   527
  movl(ecx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   528
  andl(ecx, 63);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   529
  shll(ecx, 4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   530
  sarl(eax, 6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   531
  movl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   532
  movdqu(xmm6, Address(tmp, 16));          // 0xffffffc0UL, 0x00000000UL, 0xffffffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   533
  pand(xmm7, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   534
  movdqu(xmm6, Address(tmp, 32));          // 0x0000ffc0UL, 0x00000000UL, 0x0000ffc0UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   535
  paddq(xmm7, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   536
  psllq(xmm7, 46);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   537
  subpd(xmm0, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   538
  movdqu(xmm2, Address(tmp, ecx, Address::times_1, 160));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   539
  mulpd(xmm4, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   540
  movapd(xmm6, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   541
  movapd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   542
  mulpd(xmm6, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   543
  mulpd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   544
  addpd(xmm5, xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   545
  mulsd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   546
  mulpd(xmm6, Address(tmp, 112));          // 0xfffffffeUL, 0x3fdfffffUL, 0xfffffffeUL, 0x3fdfffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   547
  addsd(xmm1, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   548
  unpckhpd(xmm2, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   549
  mulpd(xmm0, xmm5);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   550
  addsd(xmm1, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   551
  por(xmm2, xmm7);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   552
  unpckhpd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   553
  addsd(xmm0, xmm1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   554
  addsd(xmm0, xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   555
  addl(edx, 894);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   556
  cmpl(edx, 1916);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   557
  jcc (Assembler::above, L_2TAG_PACKET_1_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   558
  mulsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   559
  addsd(xmm0, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   560
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   561
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   562
  bind(L_2TAG_PACKET_1_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   563
  fnstcw(Address(rsp, 24));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   564
  movzwl(edx, Address(rsp, 24));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   565
  orl(edx, 768);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   566
  movw(Address(rsp, 28), edx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   567
  fldcw(Address(rsp, 28));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   568
  movl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   569
  sarl(eax, 1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   570
  subl(edx, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   571
  movdqu(xmm6, Address(tmp, 0));           // 0x00000000UL, 0xfff00000UL, 0x00000000UL, 0xfff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   572
  pandn(xmm6, xmm2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   573
  addl(eax, 1023);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   574
  movdl(xmm3, eax);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   575
  psllq(xmm3, 52);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   576
  por(xmm6, xmm3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   577
  addl(edx, 1023);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   578
  movdl(xmm4, edx);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   579
  psllq(xmm4, 52);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   580
  movsd(Address(rsp, 8), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   581
  fld_d(Address(rsp, 8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   582
  movsd(Address(rsp, 16), xmm6);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   583
  fld_d(Address(rsp, 16));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   584
  fmula(1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   585
  faddp(1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   586
  movsd(Address(rsp, 8), xmm4);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   587
  fld_d(Address(rsp, 8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   588
  fmulp(1);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   589
  fstp_d(Address(rsp, 8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   590
  movsd(xmm0,Address(rsp, 8));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   591
  fldcw(Address(rsp, 24));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   592
  pextrw(ecx, xmm0, 3);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   593
  andl(ecx, 32752);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   594
  cmpl(ecx, 32752);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   595
  jcc(Assembler::greaterEqual, L_2TAG_PACKET_3_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   596
  cmpl(ecx, 0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   597
  jcc(Assembler::equal, L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   598
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   599
  cmpl(ecx, INT_MIN);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   600
  jcc(Assembler::less, L_2TAG_PACKET_3_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   601
  cmpl(ecx, -1064950997);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   602
  jcc(Assembler::less, L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   603
  jcc(Assembler::greater, L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   604
  movl(edx, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   605
  cmpl(edx ,-17155601);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   606
  jcc(Assembler::less, L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   607
  jmp(L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   608
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   609
  bind(L_2TAG_PACKET_3_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   610
  movl(edx, 14);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   611
  jmp(L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   612
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   613
  bind(L_2TAG_PACKET_4_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   614
  movl(edx, 15);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   615
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   616
  bind(L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   617
  movsd(Address(rsp, 0), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   618
  movsd(xmm0, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   619
  fld_d(Address(rsp, 0));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   620
  jmp(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   621
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   622
  bind(L_2TAG_PACKET_7_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   623
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   624
  jcc(Assembler::greaterEqual, L_2TAG_PACKET_8_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   625
  movl(eax, Address(rsp, 132));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   626
  cmpl(eax, INT_MIN);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   627
  jcc(Assembler::greaterEqual, L_2TAG_PACKET_9_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   628
  movsd(xmm0, Address(tmp, 1208));         // 0xffffffffUL, 0x7fefffffUL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   629
  mulsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   630
  movl(edx, 14);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   631
  jmp(L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   632
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   633
  bind(L_2TAG_PACKET_9_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   634
  movsd(xmm0, Address(tmp, 1216));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   635
  mulsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   636
  movl(edx, 15);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   637
  jmp(L_2TAG_PACKET_5_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   638
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   639
  bind(L_2TAG_PACKET_8_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   640
  movl(edx, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   641
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   642
  jcc(Assembler::above, L_2TAG_PACKET_10_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   643
  cmpl(edx, 0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   644
  jcc(Assembler::notEqual, L_2TAG_PACKET_10_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   645
  movl(eax, Address(rsp, 132));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   646
  cmpl(eax, 2146435072);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   647
  jcc(Assembler::notEqual, L_2TAG_PACKET_11_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   648
  movsd(xmm0, Address(tmp, 1192));         // 0x00000000UL, 0x7ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   649
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   650
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   651
  bind(L_2TAG_PACKET_11_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   652
  movsd(xmm0, Address(tmp, 1200));         // 0x00000000UL, 0x00000000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   653
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   654
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   655
  bind(L_2TAG_PACKET_10_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   656
  movsd(xmm0, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   657
  addsd(xmm0, xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   658
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   659
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   660
  bind(L_2TAG_PACKET_0_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   661
  movl(eax, Address(rsp, 132));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   662
  andl(eax, 2147483647);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   663
  cmpl(eax, 1083179008);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   664
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_7_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   665
  movsd(xmm0, Address(rsp, 128));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   666
  addsd(xmm0, Address(tmp, 1184));         // 0x00000000UL, 0x3ff00000UL
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   667
  jmp(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   668
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   669
  bind(L_2TAG_PACKET_2_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   670
  movsd(Address(rsp, 48), xmm0);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   671
  fld_d(Address(rsp, 48));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   672
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   673
  bind(L_2TAG_PACKET_6_0_2);
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   674
  movl(tmp, Address(rsp, 64));
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   675
}
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   676
f4e956ed8b43 8132207: update for x86 exp in the math lib
iveresov
parents:
diff changeset
   677
#endif
33465
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   678
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   679
/******************************************************************************/
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   680
//                     ALGORITHM DESCRIPTION - LOG()
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   681
//                     ---------------------
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   682
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   683
//    x=2^k * mx, mx in [1,2)
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   684
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   685
//    Get B~1/mx based on the output of rcpss instruction (B0)
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   686
//    B = int((B0*2^7+0.5))/2^7
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   687
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   688
//    Reduced argument: r=B*mx-1.0 (computed accurately in high and low parts)
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   689
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   690
//    Result:  k*log(2) - log(B) + p(r) if |x-1| >= small value (2^-6)  and
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   691
//             p(r) is a degree 7 polynomial
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   692
//             -log(B) read from data table (high, low parts)
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   693
//             Result is formed from high and low parts
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   694
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   695
// Special cases:
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   696
//  log(NaN) = quiet NaN, and raise invalid exception
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   697
//  log(+INF) = that INF
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   698
//  log(0) = -INF with divide-by-zero exception raised
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   699
//  log(1) = +0
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   700
//  log(x) = NaN with invalid exception raised if x < -0, including -INF
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   701
//
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   702
/******************************************************************************/
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   703
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   704
#ifdef _LP64
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   705
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   706
ALIGNED_(16) juint _L_tbl[] =
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   707
{
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   708
  0xfefa3800UL, 0x3fe62e42UL, 0x93c76730UL, 0x3d2ef357UL, 0xaa241800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   709
  0x3fe5ee82UL, 0x0cda46beUL, 0x3d220238UL, 0x5c364800UL, 0x3fe5af40UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   710
  0xac10c9fbUL, 0x3d2dfa63UL, 0x26bb8c00UL, 0x3fe5707aUL, 0xff3303ddUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   711
  0x3d09980bUL, 0x26867800UL, 0x3fe5322eUL, 0x5d257531UL, 0x3d05ccc4UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   712
  0x835a5000UL, 0x3fe4f45aUL, 0x6d93b8fbUL, 0xbd2e6c51UL, 0x6f970c00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   713
  0x3fe4b6fdUL, 0xed4c541cUL, 0x3cef7115UL, 0x27e8a400UL, 0x3fe47a15UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   714
  0xf94d60aaUL, 0xbd22cb6aUL, 0xf2f92400UL, 0x3fe43d9fUL, 0x481051f7UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   715
  0xbcfd984fUL, 0x2125cc00UL, 0x3fe4019cUL, 0x30f0c74cUL, 0xbd26ce79UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   716
  0x0c36c000UL, 0x3fe3c608UL, 0x7cfe13c2UL, 0xbd02b736UL, 0x17197800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   717
  0x3fe38ae2UL, 0xbb5569a4UL, 0xbd218b7aUL, 0xad9d8c00UL, 0x3fe35028UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   718
  0x9527e6acUL, 0x3d10b83fUL, 0x44340800UL, 0x3fe315daUL, 0xc5a0ed9cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   719
  0xbd274e93UL, 0x57b0e000UL, 0x3fe2dbf5UL, 0x07b9dc11UL, 0xbd17a6e5UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   720
  0x6d0ec000UL, 0x3fe2a278UL, 0xe797882dUL, 0x3d206d2bUL, 0x1134dc00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   721
  0x3fe26962UL, 0x05226250UL, 0xbd0b61f1UL, 0xd8bebc00UL, 0x3fe230b0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   722
  0x6e48667bUL, 0x3d12fc06UL, 0x5fc61800UL, 0x3fe1f863UL, 0xc9fe81d3UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   723
  0xbd2a7242UL, 0x49ae6000UL, 0x3fe1c078UL, 0xed70e667UL, 0x3cccacdeUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   724
  0x40f23c00UL, 0x3fe188eeUL, 0xf8ab4650UL, 0x3d14cc4eUL, 0xf6f29800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   725
  0x3fe151c3UL, 0xa293ae49UL, 0xbd2edd97UL, 0x23c75c00UL, 0x3fe11af8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   726
  0xbb9ddcb2UL, 0xbd258647UL, 0x8611cc00UL, 0x3fe0e489UL, 0x07801742UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   727
  0x3d1c2998UL, 0xe2d05400UL, 0x3fe0ae76UL, 0x887e7e27UL, 0x3d1f486bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   728
  0x0533c400UL, 0x3fe078bfUL, 0x41edf5fdUL, 0x3d268122UL, 0xbe760400UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   729
  0x3fe04360UL, 0xe79539e0UL, 0xbd04c45fUL, 0xe5b20800UL, 0x3fe00e5aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   730
  0xb1727b1cUL, 0xbd053ba3UL, 0xaf7a4800UL, 0x3fdfb358UL, 0x3c164935UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   731
  0x3d0085faUL, 0xee031800UL, 0x3fdf4aa7UL, 0x6f014a8bUL, 0x3d12cde5UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   732
  0x56b41000UL, 0x3fdee2a1UL, 0x5a470251UL, 0x3d2f27f4UL, 0xc3ddb000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   733
  0x3fde7b42UL, 0x5372bd08UL, 0xbd246550UL, 0x1a272800UL, 0x3fde148aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   734
  0x07322938UL, 0xbd1326b2UL, 0x484c9800UL, 0x3fddae75UL, 0x60dc616aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   735
  0xbd1ea42dUL, 0x46def800UL, 0x3fdd4902UL, 0xe9a767a8UL, 0x3d235bafUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   736
  0x18064800UL, 0x3fdce42fUL, 0x3ec7a6b0UL, 0xbd0797c3UL, 0xc7455800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   737
  0x3fdc7ff9UL, 0xc15249aeUL, 0xbd29b6ddUL, 0x693fa000UL, 0x3fdc1c60UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   738
  0x7fe8e180UL, 0x3d2cec80UL, 0x1b80e000UL, 0x3fdbb961UL, 0xf40a666dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   739
  0x3d27d85bUL, 0x04462800UL, 0x3fdb56faUL, 0x2d841995UL, 0x3d109525UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   740
  0x5248d000UL, 0x3fdaf529UL, 0x52774458UL, 0xbd217cc5UL, 0x3c8ad800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   741
  0x3fda93edUL, 0xbea77a5dUL, 0x3d1e36f2UL, 0x0224f800UL, 0x3fda3344UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   742
  0x7f9d79f5UL, 0x3d23c645UL, 0xea15f000UL, 0x3fd9d32bUL, 0x10d0c0b0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   743
  0xbd26279eUL, 0x43135800UL, 0x3fd973a3UL, 0xa502d9f0UL, 0xbd152313UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   744
  0x635bf800UL, 0x3fd914a8UL, 0x2ee6307dUL, 0xbd1766b5UL, 0xa88b3000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   745
  0x3fd8b639UL, 0xe5e70470UL, 0xbd205ae1UL, 0x776dc800UL, 0x3fd85855UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   746
  0x3333778aUL, 0x3d2fd56fUL, 0x3bd81800UL, 0x3fd7fafaUL, 0xc812566aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   747
  0xbd272090UL, 0x687cf800UL, 0x3fd79e26UL, 0x2efd1778UL, 0x3d29ec7dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   748
  0x76c67800UL, 0x3fd741d8UL, 0x49dc60b3UL, 0x3d2d8b09UL, 0xe6af1800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   749
  0x3fd6e60eUL, 0x7c222d87UL, 0x3d172165UL, 0x3e9c6800UL, 0x3fd68ac8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   750
  0x2756eba0UL, 0x3d20a0d3UL, 0x0b3ab000UL, 0x3fd63003UL, 0xe731ae00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   751
  0xbd2db623UL, 0xdf596000UL, 0x3fd5d5bdUL, 0x08a465dcUL, 0xbd0a0b2aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   752
  0x53c8d000UL, 0x3fd57bf7UL, 0xee5d40efUL, 0x3d1fadedUL, 0x0738a000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   753
  0x3fd522aeUL, 0x8164c759UL, 0x3d2ebe70UL, 0x9e173000UL, 0x3fd4c9e0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   754
  0x1b0ad8a4UL, 0xbd2e2089UL, 0xc271c800UL, 0x3fd4718dUL, 0x0967d675UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   755
  0xbd2f27ceUL, 0x23d5e800UL, 0x3fd419b4UL, 0xec90e09dUL, 0x3d08e436UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   756
  0x77333000UL, 0x3fd3c252UL, 0xb606bd5cUL, 0x3d183b54UL, 0x76be1000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   757
  0x3fd36b67UL, 0xb0f177c8UL, 0x3d116ecdUL, 0xe1d36000UL, 0x3fd314f1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   758
  0xd3213cb8UL, 0xbd28e27aUL, 0x7cdc9000UL, 0x3fd2bef0UL, 0x4a5004f4UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   759
  0x3d2a9cfaUL, 0x1134d800UL, 0x3fd26962UL, 0xdf5bb3b6UL, 0x3d2c93c1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   760
  0x6d0eb800UL, 0x3fd21445UL, 0xba46baeaUL, 0x3d0a87deUL, 0x635a6800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   761
  0x3fd1bf99UL, 0x5147bdb7UL, 0x3d2ca6edUL, 0xcbacf800UL, 0x3fd16b5cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   762
  0xf7a51681UL, 0x3d2b9acdUL, 0x8227e800UL, 0x3fd1178eUL, 0x63a5f01cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   763
  0xbd2c210eUL, 0x67616000UL, 0x3fd0c42dUL, 0x163ceae9UL, 0x3d27188bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   764
  0x604d5800UL, 0x3fd07138UL, 0x16ed4e91UL, 0x3cf89cdbUL, 0x5626c800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   765
  0x3fd01eaeUL, 0x1485e94aUL, 0xbd16f08cUL, 0x6cb3b000UL, 0x3fcf991cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   766
  0xca0cdf30UL, 0x3d1bcbecUL, 0xe4dd0000UL, 0x3fcef5adUL, 0x65bb8e11UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   767
  0xbcca2115UL, 0xffe71000UL, 0x3fce530eUL, 0x6041f430UL, 0x3cc21227UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   768
  0xb0d49000UL, 0x3fcdb13dUL, 0xf715b035UL, 0xbd2aff2aUL, 0xf2656000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   769
  0x3fcd1037UL, 0x75b6f6e4UL, 0xbd084a7eUL, 0xc6f01000UL, 0x3fcc6ffbUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   770
  0xc5962bd2UL, 0xbcf1ec72UL, 0x383be000UL, 0x3fcbd087UL, 0x595412b6UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   771
  0xbd2d4bc4UL, 0x575bd000UL, 0x3fcb31d8UL, 0x4eace1aaUL, 0xbd0c358dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   772
  0x3c8ae000UL, 0x3fca93edUL, 0x50562169UL, 0xbd287243UL, 0x07089000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   773
  0x3fc9f6c4UL, 0x6865817aUL, 0x3d29904dUL, 0xdcf70000UL, 0x3fc95a5aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   774
  0x58a0ff6fUL, 0x3d07f228UL, 0xeb390000UL, 0x3fc8beafUL, 0xaae92cd1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   775
  0xbd073d54UL, 0x6551a000UL, 0x3fc823c1UL, 0x9a631e83UL, 0x3d1e0ddbUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   776
  0x85445000UL, 0x3fc7898dUL, 0x70914305UL, 0xbd1c6610UL, 0x8b757000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   777
  0x3fc6f012UL, 0xe59c21e1UL, 0xbd25118dUL, 0xbe8c1000UL, 0x3fc6574eUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   778
  0x2c3c2e78UL, 0x3d19cf8bUL, 0x6b544000UL, 0x3fc5bf40UL, 0xeb68981cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   779
  0xbd127023UL, 0xe4a1b000UL, 0x3fc527e5UL, 0xe5697dc7UL, 0x3d2633e8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   780
  0x8333b000UL, 0x3fc4913dUL, 0x54fdb678UL, 0x3d258379UL, 0xa5993000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   781
  0x3fc3fb45UL, 0x7e6a354dUL, 0xbd2cd1d8UL, 0xb0159000UL, 0x3fc365fcUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   782
  0x234b7289UL, 0x3cc62fa8UL, 0x0c868000UL, 0x3fc2d161UL, 0xcb81b4a1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   783
  0x3d039d6cUL, 0x2a49c000UL, 0x3fc23d71UL, 0x8fd3df5cUL, 0x3d100d23UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   784
  0x7e23f000UL, 0x3fc1aa2bUL, 0x44389934UL, 0x3d2ca78eUL, 0x8227e000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   785
  0x3fc1178eUL, 0xce2d07f2UL, 0x3d21ef78UL, 0xb59e4000UL, 0x3fc08598UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   786
  0x7009902cUL, 0xbd27e5ddUL, 0x39dbe000UL, 0x3fbfe891UL, 0x4fa10afdUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   787
  0xbd2534d6UL, 0x830a2000UL, 0x3fbec739UL, 0xafe645e0UL, 0xbd2dc068UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   788
  0x63844000UL, 0x3fbda727UL, 0x1fa71733UL, 0x3d1a8940UL, 0x01bc4000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   789
  0x3fbc8858UL, 0xc65aacd3UL, 0x3d2646d1UL, 0x8dad6000UL, 0x3fbb6ac8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   790
  0x2bf768e5UL, 0xbd139080UL, 0x40b1c000UL, 0x3fba4e76UL, 0xb94407c8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   791
  0xbd0e42b6UL, 0x5d594000UL, 0x3fb9335eUL, 0x3abd47daUL, 0x3d23115cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   792
  0x2f40e000UL, 0x3fb8197eUL, 0xf96ffdf7UL, 0x3d0f80dcUL, 0x0aeac000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   793
  0x3fb700d3UL, 0xa99ded32UL, 0x3cec1e8dUL, 0x4d97a000UL, 0x3fb5e95aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   794
  0x3c5d1d1eUL, 0xbd2c6906UL, 0x5d208000UL, 0x3fb4d311UL, 0x82f4e1efUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   795
  0xbcf53a25UL, 0xa7d1e000UL, 0x3fb3bdf5UL, 0xa5db4ed7UL, 0x3d2cc85eUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   796
  0xa4472000UL, 0x3fb2aa04UL, 0xae9c697dUL, 0xbd20b6e8UL, 0xd1466000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   797
  0x3fb1973bUL, 0x560d9e9bUL, 0xbd25325dUL, 0xb59e4000UL, 0x3fb08598UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   798
  0x7009902cUL, 0xbd17e5ddUL, 0xc006c000UL, 0x3faeea31UL, 0x4fc93b7bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   799
  0xbd0e113eUL, 0xcdddc000UL, 0x3faccb73UL, 0x47d82807UL, 0xbd1a68f2UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   800
  0xd0fb0000UL, 0x3faaaef2UL, 0x353bb42eUL, 0x3d20fc1aUL, 0x149fc000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   801
  0x3fa894aaUL, 0xd05a267dUL, 0xbd197995UL, 0xf2d4c000UL, 0x3fa67c94UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   802
  0xec19afa2UL, 0xbd029efbUL, 0xd42e0000UL, 0x3fa466aeUL, 0x75bdfd28UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   803
  0xbd2c1673UL, 0x2f8d0000UL, 0x3fa252f3UL, 0xe021b67bUL, 0x3d283e9aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   804
  0x89e74000UL, 0x3fa0415dUL, 0x5cf1d753UL, 0x3d0111c0UL, 0xec148000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   805
  0x3f9c63d2UL, 0x3f9eb2f3UL, 0x3d2578c6UL, 0x28c90000UL, 0x3f984925UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   806
  0x325a0c34UL, 0xbd2aa0baUL, 0x25980000UL, 0x3f9432a9UL, 0x928637feUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   807
  0x3d098139UL, 0x58938000UL, 0x3f902056UL, 0x06e2f7d2UL, 0xbd23dc5bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   808
  0xa3890000UL, 0x3f882448UL, 0xda74f640UL, 0xbd275577UL, 0x75890000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   809
  0x3f801015UL, 0x999d2be8UL, 0xbd10c76bUL, 0x59580000UL, 0x3f700805UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   810
  0xcb31c67bUL, 0x3d2166afUL, 0x00000000UL, 0x00000000UL, 0x00000000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   811
  0x80000000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   812
};
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   813
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   814
ALIGNED_(16) juint _log2[] =
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   815
{
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   816
  0xfefa3800UL, 0x3fa62e42UL, 0x93c76730UL, 0x3ceef357UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   817
};
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   818
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   819
ALIGNED_(16) juint _coeff[] =
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   820
{
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   821
  0x92492492UL, 0x3fc24924UL, 0x00000000UL, 0xbfd00000UL, 0x3d6fb175UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   822
  0xbfc5555eUL, 0x55555555UL, 0x3fd55555UL, 0x9999999aUL, 0x3fc99999UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   823
  0x00000000UL, 0xbfe00000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   824
};
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   825
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   826
//registers,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   827
// input: xmm0
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   828
// scratch: xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   829
//          rax, rdx, rcx, r8, r11
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   830
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   831
void MacroAssembler::fast_log(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xmm2, XMMRegister xmm3, XMMRegister xmm4, XMMRegister xmm5, XMMRegister xmm6, XMMRegister xmm7, Register eax, Register ecx, Register edx, Register tmp1, Register tmp2) {
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   832
  Label L_2TAG_PACKET_0_0_2, L_2TAG_PACKET_1_0_2, L_2TAG_PACKET_2_0_2, L_2TAG_PACKET_3_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   833
  Label L_2TAG_PACKET_4_0_2, L_2TAG_PACKET_5_0_2, L_2TAG_PACKET_6_0_2, L_2TAG_PACKET_7_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   834
  Label L_2TAG_PACKET_8_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   835
  Label L_2TAG_PACKET_12_0_2, L_2TAG_PACKET_13_0_2, B1_3, B1_5, start;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   836
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   837
  assert_different_registers(tmp1, tmp2, eax, ecx, edx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   838
  jmp(start);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   839
  address L_tbl = (address)_L_tbl;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   840
  address log2 = (address)_log2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   841
  address coeff = (address)_coeff;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   842
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   843
  bind(start);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   844
  subq(rsp, 24);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   845
  movsd(Address(rsp, 0), xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   846
  mov64(rax, 0x3ff0000000000000);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   847
  movdq(xmm2, rax);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   848
  mov64(rdx, 0x77f0000000000000);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   849
  movdq(xmm3, rdx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   850
  movl(ecx, 32768);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   851
  movdl(xmm4, rcx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   852
  mov64(tmp1, 0xffffe00000000000);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   853
  movdq(xmm5, tmp1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   854
  movdqu(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   855
  pextrw(eax, xmm0, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   856
  por(xmm0, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   857
  movl(ecx, 16352);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   858
  psrlq(xmm0, 27);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   859
  lea(tmp2, ExternalAddress(L_tbl));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   860
  psrld(xmm0, 2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   861
  rcpps(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   862
  psllq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   863
  pshufd(xmm6, xmm5, 228);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   864
  psrlq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   865
  subl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   866
  cmpl(eax, 32736);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   867
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_0_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   868
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   869
  bind(L_2TAG_PACKET_1_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   870
  paddd(xmm0, xmm4);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   871
  por(xmm1, xmm3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   872
  movdl(edx, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   873
  psllq(xmm0, 29);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   874
  pand(xmm5, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   875
  pand(xmm0, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   876
  subsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   877
  mulpd(xmm5, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   878
  andl(eax, 32752);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   879
  subl(eax, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   880
  cvtsi2sdl(xmm7, eax);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   881
  mulsd(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   882
  movq(xmm6, ExternalAddress(log2));       // 0xfefa3800UL, 0x3fa62e42UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   883
  movdqu(xmm3, ExternalAddress(coeff));    // 0x92492492UL, 0x3fc24924UL, 0x00000000UL, 0xbfd00000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   884
  subsd(xmm5, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   885
  andl(edx, 16711680);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   886
  shrl(edx, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   887
  movdqu(xmm0, Address(tmp2, edx));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   888
  movdqu(xmm4, ExternalAddress(16 + coeff)); // 0x3d6fb175UL, 0xbfc5555eUL, 0x55555555UL, 0x3fd55555UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   889
  addsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   890
  movdqu(xmm2, ExternalAddress(32 + coeff)); // 0x9999999aUL, 0x3fc99999UL, 0x00000000UL, 0xbfe00000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   891
  mulsd(xmm6, xmm7);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   892
  movddup(xmm5, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   893
  mulsd(xmm7, ExternalAddress(8 + log2));    // 0x93c76730UL, 0x3ceef357UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   894
  mulsd(xmm3, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   895
  addsd(xmm0, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   896
  mulpd(xmm4, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   897
  mulpd(xmm5, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   898
  movddup(xmm6, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   899
  addsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   900
  addpd(xmm4, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   901
  mulpd(xmm3, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   902
  subsd(xmm6, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   903
  mulsd(xmm4, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   904
  pshufd(xmm2, xmm0, 238);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   905
  addsd(xmm1, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   906
  mulsd(xmm5, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   907
  addsd(xmm7, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   908
  addpd(xmm4, xmm3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   909
  addsd(xmm1, xmm7);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   910
  mulpd(xmm4, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   911
  addsd(xmm1, xmm4);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   912
  pshufd(xmm5, xmm4, 238);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   913
  addsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   914
  addsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   915
  jmp(B1_5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   916
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   917
  bind(L_2TAG_PACKET_0_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   918
  movq(xmm0, Address(rsp, 0));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   919
  movq(xmm1, Address(rsp, 0));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   920
  addl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   921
  cmpl(eax, 32768);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   922
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_2_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   923
  cmpl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   924
  jcc(Assembler::below, L_2TAG_PACKET_3_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   925
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   926
  bind(L_2TAG_PACKET_4_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   927
  addsd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   928
  jmp(B1_5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   929
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   930
  bind(L_2TAG_PACKET_5_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   931
  jcc(Assembler::above, L_2TAG_PACKET_4_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   932
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   933
  jcc(Assembler::above, L_2TAG_PACKET_4_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   934
  jmp(L_2TAG_PACKET_6_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   935
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   936
  bind(L_2TAG_PACKET_3_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   937
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   938
  addsd(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   939
  movdl(edx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   940
  psrlq(xmm1, 32);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   941
  movdl(ecx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   942
  orl(edx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   943
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   944
  jcc(Assembler::equal, L_2TAG_PACKET_7_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   945
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   946
  movl(eax, 18416);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   947
  pinsrw(xmm1, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   948
  mulsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   949
  movdqu(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   950
  pextrw(eax, xmm0, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   951
  por(xmm0, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   952
  psrlq(xmm0, 27);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   953
  movl(ecx, 18416);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   954
  psrld(xmm0, 2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   955
  rcpps(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   956
  psllq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   957
  pshufd(xmm6, xmm5, 228);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   958
  psrlq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   959
  jmp(L_2TAG_PACKET_1_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   960
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   961
  bind(L_2TAG_PACKET_2_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   962
  movdl(edx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   963
  psrlq(xmm1, 32);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   964
  movdl(ecx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   965
  addl(ecx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   966
  cmpl(ecx, -2097152);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   967
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_5_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   968
  orl(edx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   969
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   970
  jcc(Assembler::equal, L_2TAG_PACKET_7_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   971
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   972
  bind(L_2TAG_PACKET_6_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   973
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   974
  xorpd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   975
  movl(eax, 32752);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   976
  pinsrw(xmm1, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   977
  mulsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   978
  movl(Address(rsp, 16), 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   979
  jmp(L_2TAG_PACKET_8_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   980
  bind(L_2TAG_PACKET_7_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   981
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   982
  xorpd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   983
  movl(eax, 49136);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   984
  pinsrw(xmm0, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   985
  divsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   986
  movl(Address(rsp, 16), 2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   987
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   988
  bind(L_2TAG_PACKET_8_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   989
  movq(Address(rsp, 8), xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   990
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   991
  bind(B1_3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   992
  movq(xmm0, Address(rsp, 8));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   993
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   994
  bind(B1_5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   995
  addq(rsp, 24);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   996
}
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   997
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   998
#endif
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
   999
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1000
#ifndef _LP64
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1001
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1002
ALIGNED_(16) juint _static_const_table_log[] =
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1003
{
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1004
  0xfefa3800UL, 0x3fe62e42UL, 0x93c76730UL, 0x3d2ef357UL, 0xaa241800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1005
  0x3fe5ee82UL, 0x0cda46beUL, 0x3d220238UL, 0x5c364800UL, 0x3fe5af40UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1006
  0xac10c9fbUL, 0x3d2dfa63UL, 0x26bb8c00UL, 0x3fe5707aUL, 0xff3303ddUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1007
  0x3d09980bUL, 0x26867800UL, 0x3fe5322eUL, 0x5d257531UL, 0x3d05ccc4UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1008
  0x835a5000UL, 0x3fe4f45aUL, 0x6d93b8fbUL, 0xbd2e6c51UL, 0x6f970c00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1009
  0x3fe4b6fdUL, 0xed4c541cUL, 0x3cef7115UL, 0x27e8a400UL, 0x3fe47a15UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1010
  0xf94d60aaUL, 0xbd22cb6aUL, 0xf2f92400UL, 0x3fe43d9fUL, 0x481051f7UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1011
  0xbcfd984fUL, 0x2125cc00UL, 0x3fe4019cUL, 0x30f0c74cUL, 0xbd26ce79UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1012
  0x0c36c000UL, 0x3fe3c608UL, 0x7cfe13c2UL, 0xbd02b736UL, 0x17197800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1013
  0x3fe38ae2UL, 0xbb5569a4UL, 0xbd218b7aUL, 0xad9d8c00UL, 0x3fe35028UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1014
  0x9527e6acUL, 0x3d10b83fUL, 0x44340800UL, 0x3fe315daUL, 0xc5a0ed9cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1015
  0xbd274e93UL, 0x57b0e000UL, 0x3fe2dbf5UL, 0x07b9dc11UL, 0xbd17a6e5UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1016
  0x6d0ec000UL, 0x3fe2a278UL, 0xe797882dUL, 0x3d206d2bUL, 0x1134dc00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1017
  0x3fe26962UL, 0x05226250UL, 0xbd0b61f1UL, 0xd8bebc00UL, 0x3fe230b0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1018
  0x6e48667bUL, 0x3d12fc06UL, 0x5fc61800UL, 0x3fe1f863UL, 0xc9fe81d3UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1019
  0xbd2a7242UL, 0x49ae6000UL, 0x3fe1c078UL, 0xed70e667UL, 0x3cccacdeUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1020
  0x40f23c00UL, 0x3fe188eeUL, 0xf8ab4650UL, 0x3d14cc4eUL, 0xf6f29800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1021
  0x3fe151c3UL, 0xa293ae49UL, 0xbd2edd97UL, 0x23c75c00UL, 0x3fe11af8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1022
  0xbb9ddcb2UL, 0xbd258647UL, 0x8611cc00UL, 0x3fe0e489UL, 0x07801742UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1023
  0x3d1c2998UL, 0xe2d05400UL, 0x3fe0ae76UL, 0x887e7e27UL, 0x3d1f486bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1024
  0x0533c400UL, 0x3fe078bfUL, 0x41edf5fdUL, 0x3d268122UL, 0xbe760400UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1025
  0x3fe04360UL, 0xe79539e0UL, 0xbd04c45fUL, 0xe5b20800UL, 0x3fe00e5aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1026
  0xb1727b1cUL, 0xbd053ba3UL, 0xaf7a4800UL, 0x3fdfb358UL, 0x3c164935UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1027
  0x3d0085faUL, 0xee031800UL, 0x3fdf4aa7UL, 0x6f014a8bUL, 0x3d12cde5UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1028
  0x56b41000UL, 0x3fdee2a1UL, 0x5a470251UL, 0x3d2f27f4UL, 0xc3ddb000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1029
  0x3fde7b42UL, 0x5372bd08UL, 0xbd246550UL, 0x1a272800UL, 0x3fde148aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1030
  0x07322938UL, 0xbd1326b2UL, 0x484c9800UL, 0x3fddae75UL, 0x60dc616aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1031
  0xbd1ea42dUL, 0x46def800UL, 0x3fdd4902UL, 0xe9a767a8UL, 0x3d235bafUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1032
  0x18064800UL, 0x3fdce42fUL, 0x3ec7a6b0UL, 0xbd0797c3UL, 0xc7455800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1033
  0x3fdc7ff9UL, 0xc15249aeUL, 0xbd29b6ddUL, 0x693fa000UL, 0x3fdc1c60UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1034
  0x7fe8e180UL, 0x3d2cec80UL, 0x1b80e000UL, 0x3fdbb961UL, 0xf40a666dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1035
  0x3d27d85bUL, 0x04462800UL, 0x3fdb56faUL, 0x2d841995UL, 0x3d109525UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1036
  0x5248d000UL, 0x3fdaf529UL, 0x52774458UL, 0xbd217cc5UL, 0x3c8ad800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1037
  0x3fda93edUL, 0xbea77a5dUL, 0x3d1e36f2UL, 0x0224f800UL, 0x3fda3344UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1038
  0x7f9d79f5UL, 0x3d23c645UL, 0xea15f000UL, 0x3fd9d32bUL, 0x10d0c0b0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1039
  0xbd26279eUL, 0x43135800UL, 0x3fd973a3UL, 0xa502d9f0UL, 0xbd152313UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1040
  0x635bf800UL, 0x3fd914a8UL, 0x2ee6307dUL, 0xbd1766b5UL, 0xa88b3000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1041
  0x3fd8b639UL, 0xe5e70470UL, 0xbd205ae1UL, 0x776dc800UL, 0x3fd85855UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1042
  0x3333778aUL, 0x3d2fd56fUL, 0x3bd81800UL, 0x3fd7fafaUL, 0xc812566aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1043
  0xbd272090UL, 0x687cf800UL, 0x3fd79e26UL, 0x2efd1778UL, 0x3d29ec7dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1044
  0x76c67800UL, 0x3fd741d8UL, 0x49dc60b3UL, 0x3d2d8b09UL, 0xe6af1800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1045
  0x3fd6e60eUL, 0x7c222d87UL, 0x3d172165UL, 0x3e9c6800UL, 0x3fd68ac8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1046
  0x2756eba0UL, 0x3d20a0d3UL, 0x0b3ab000UL, 0x3fd63003UL, 0xe731ae00UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1047
  0xbd2db623UL, 0xdf596000UL, 0x3fd5d5bdUL, 0x08a465dcUL, 0xbd0a0b2aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1048
  0x53c8d000UL, 0x3fd57bf7UL, 0xee5d40efUL, 0x3d1fadedUL, 0x0738a000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1049
  0x3fd522aeUL, 0x8164c759UL, 0x3d2ebe70UL, 0x9e173000UL, 0x3fd4c9e0UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1050
  0x1b0ad8a4UL, 0xbd2e2089UL, 0xc271c800UL, 0x3fd4718dUL, 0x0967d675UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1051
  0xbd2f27ceUL, 0x23d5e800UL, 0x3fd419b4UL, 0xec90e09dUL, 0x3d08e436UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1052
  0x77333000UL, 0x3fd3c252UL, 0xb606bd5cUL, 0x3d183b54UL, 0x76be1000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1053
  0x3fd36b67UL, 0xb0f177c8UL, 0x3d116ecdUL, 0xe1d36000UL, 0x3fd314f1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1054
  0xd3213cb8UL, 0xbd28e27aUL, 0x7cdc9000UL, 0x3fd2bef0UL, 0x4a5004f4UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1055
  0x3d2a9cfaUL, 0x1134d800UL, 0x3fd26962UL, 0xdf5bb3b6UL, 0x3d2c93c1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1056
  0x6d0eb800UL, 0x3fd21445UL, 0xba46baeaUL, 0x3d0a87deUL, 0x635a6800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1057
  0x3fd1bf99UL, 0x5147bdb7UL, 0x3d2ca6edUL, 0xcbacf800UL, 0x3fd16b5cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1058
  0xf7a51681UL, 0x3d2b9acdUL, 0x8227e800UL, 0x3fd1178eUL, 0x63a5f01cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1059
  0xbd2c210eUL, 0x67616000UL, 0x3fd0c42dUL, 0x163ceae9UL, 0x3d27188bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1060
  0x604d5800UL, 0x3fd07138UL, 0x16ed4e91UL, 0x3cf89cdbUL, 0x5626c800UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1061
  0x3fd01eaeUL, 0x1485e94aUL, 0xbd16f08cUL, 0x6cb3b000UL, 0x3fcf991cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1062
  0xca0cdf30UL, 0x3d1bcbecUL, 0xe4dd0000UL, 0x3fcef5adUL, 0x65bb8e11UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1063
  0xbcca2115UL, 0xffe71000UL, 0x3fce530eUL, 0x6041f430UL, 0x3cc21227UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1064
  0xb0d49000UL, 0x3fcdb13dUL, 0xf715b035UL, 0xbd2aff2aUL, 0xf2656000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1065
  0x3fcd1037UL, 0x75b6f6e4UL, 0xbd084a7eUL, 0xc6f01000UL, 0x3fcc6ffbUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1066
  0xc5962bd2UL, 0xbcf1ec72UL, 0x383be000UL, 0x3fcbd087UL, 0x595412b6UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1067
  0xbd2d4bc4UL, 0x575bd000UL, 0x3fcb31d8UL, 0x4eace1aaUL, 0xbd0c358dUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1068
  0x3c8ae000UL, 0x3fca93edUL, 0x50562169UL, 0xbd287243UL, 0x07089000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1069
  0x3fc9f6c4UL, 0x6865817aUL, 0x3d29904dUL, 0xdcf70000UL, 0x3fc95a5aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1070
  0x58a0ff6fUL, 0x3d07f228UL, 0xeb390000UL, 0x3fc8beafUL, 0xaae92cd1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1071
  0xbd073d54UL, 0x6551a000UL, 0x3fc823c1UL, 0x9a631e83UL, 0x3d1e0ddbUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1072
  0x85445000UL, 0x3fc7898dUL, 0x70914305UL, 0xbd1c6610UL, 0x8b757000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1073
  0x3fc6f012UL, 0xe59c21e1UL, 0xbd25118dUL, 0xbe8c1000UL, 0x3fc6574eUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1074
  0x2c3c2e78UL, 0x3d19cf8bUL, 0x6b544000UL, 0x3fc5bf40UL, 0xeb68981cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1075
  0xbd127023UL, 0xe4a1b000UL, 0x3fc527e5UL, 0xe5697dc7UL, 0x3d2633e8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1076
  0x8333b000UL, 0x3fc4913dUL, 0x54fdb678UL, 0x3d258379UL, 0xa5993000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1077
  0x3fc3fb45UL, 0x7e6a354dUL, 0xbd2cd1d8UL, 0xb0159000UL, 0x3fc365fcUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1078
  0x234b7289UL, 0x3cc62fa8UL, 0x0c868000UL, 0x3fc2d161UL, 0xcb81b4a1UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1079
  0x3d039d6cUL, 0x2a49c000UL, 0x3fc23d71UL, 0x8fd3df5cUL, 0x3d100d23UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1080
  0x7e23f000UL, 0x3fc1aa2bUL, 0x44389934UL, 0x3d2ca78eUL, 0x8227e000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1081
  0x3fc1178eUL, 0xce2d07f2UL, 0x3d21ef78UL, 0xb59e4000UL, 0x3fc08598UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1082
  0x7009902cUL, 0xbd27e5ddUL, 0x39dbe000UL, 0x3fbfe891UL, 0x4fa10afdUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1083
  0xbd2534d6UL, 0x830a2000UL, 0x3fbec739UL, 0xafe645e0UL, 0xbd2dc068UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1084
  0x63844000UL, 0x3fbda727UL, 0x1fa71733UL, 0x3d1a8940UL, 0x01bc4000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1085
  0x3fbc8858UL, 0xc65aacd3UL, 0x3d2646d1UL, 0x8dad6000UL, 0x3fbb6ac8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1086
  0x2bf768e5UL, 0xbd139080UL, 0x40b1c000UL, 0x3fba4e76UL, 0xb94407c8UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1087
  0xbd0e42b6UL, 0x5d594000UL, 0x3fb9335eUL, 0x3abd47daUL, 0x3d23115cUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1088
  0x2f40e000UL, 0x3fb8197eUL, 0xf96ffdf7UL, 0x3d0f80dcUL, 0x0aeac000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1089
  0x3fb700d3UL, 0xa99ded32UL, 0x3cec1e8dUL, 0x4d97a000UL, 0x3fb5e95aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1090
  0x3c5d1d1eUL, 0xbd2c6906UL, 0x5d208000UL, 0x3fb4d311UL, 0x82f4e1efUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1091
  0xbcf53a25UL, 0xa7d1e000UL, 0x3fb3bdf5UL, 0xa5db4ed7UL, 0x3d2cc85eUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1092
  0xa4472000UL, 0x3fb2aa04UL, 0xae9c697dUL, 0xbd20b6e8UL, 0xd1466000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1093
  0x3fb1973bUL, 0x560d9e9bUL, 0xbd25325dUL, 0xb59e4000UL, 0x3fb08598UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1094
  0x7009902cUL, 0xbd17e5ddUL, 0xc006c000UL, 0x3faeea31UL, 0x4fc93b7bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1095
  0xbd0e113eUL, 0xcdddc000UL, 0x3faccb73UL, 0x47d82807UL, 0xbd1a68f2UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1096
  0xd0fb0000UL, 0x3faaaef2UL, 0x353bb42eUL, 0x3d20fc1aUL, 0x149fc000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1097
  0x3fa894aaUL, 0xd05a267dUL, 0xbd197995UL, 0xf2d4c000UL, 0x3fa67c94UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1098
  0xec19afa2UL, 0xbd029efbUL, 0xd42e0000UL, 0x3fa466aeUL, 0x75bdfd28UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1099
  0xbd2c1673UL, 0x2f8d0000UL, 0x3fa252f3UL, 0xe021b67bUL, 0x3d283e9aUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1100
  0x89e74000UL, 0x3fa0415dUL, 0x5cf1d753UL, 0x3d0111c0UL, 0xec148000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1101
  0x3f9c63d2UL, 0x3f9eb2f3UL, 0x3d2578c6UL, 0x28c90000UL, 0x3f984925UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1102
  0x325a0c34UL, 0xbd2aa0baUL, 0x25980000UL, 0x3f9432a9UL, 0x928637feUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1103
  0x3d098139UL, 0x58938000UL, 0x3f902056UL, 0x06e2f7d2UL, 0xbd23dc5bUL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1104
  0xa3890000UL, 0x3f882448UL, 0xda74f640UL, 0xbd275577UL, 0x75890000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1105
  0x3f801015UL, 0x999d2be8UL, 0xbd10c76bUL, 0x59580000UL, 0x3f700805UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1106
  0xcb31c67bUL, 0x3d2166afUL, 0x00000000UL, 0x00000000UL, 0x00000000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1107
  0x80000000UL, 0xfefa3800UL, 0x3fa62e42UL, 0x93c76730UL, 0x3ceef357UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1108
  0x92492492UL, 0x3fc24924UL, 0x00000000UL, 0xbfd00000UL, 0x3d6fb175UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1109
  0xbfc5555eUL, 0x55555555UL, 0x3fd55555UL, 0x9999999aUL, 0x3fc99999UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1110
  0x00000000UL, 0xbfe00000UL, 0x00000000UL, 0xffffe000UL, 0x00000000UL,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1111
  0xffffe000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1112
};
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1113
//registers,
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1114
// input: xmm0
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1115
// scratch: xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1116
//          rax, rdx, rcx, rbx (tmp)
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1117
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1118
void MacroAssembler::fast_log(XMMRegister xmm0, XMMRegister xmm1, XMMRegister xmm2, XMMRegister xmm3, XMMRegister xmm4, XMMRegister xmm5, XMMRegister xmm6, XMMRegister xmm7, Register eax, Register ecx, Register edx, Register tmp) {
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1119
  Label L_2TAG_PACKET_0_0_2, L_2TAG_PACKET_1_0_2, L_2TAG_PACKET_2_0_2, L_2TAG_PACKET_3_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1120
  Label L_2TAG_PACKET_4_0_2, L_2TAG_PACKET_5_0_2, L_2TAG_PACKET_6_0_2, L_2TAG_PACKET_7_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1121
  Label L_2TAG_PACKET_8_0_2, L_2TAG_PACKET_9_0_2;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1122
  Label L_2TAG_PACKET_10_0_2, start;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1123
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1124
  assert_different_registers(tmp, eax, ecx, edx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1125
  jmp(start);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1126
  address static_const_table = (address)_static_const_table_log;
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1127
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1128
  bind(start);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1129
  subl(rsp, 104);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1130
  movl(Address(rsp, 40), tmp);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1131
  lea(tmp, ExternalAddress(static_const_table));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1132
  xorpd(xmm2, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1133
  movl(eax, 16368);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1134
  pinsrw(xmm2, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1135
  xorpd(xmm3, xmm3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1136
  movl(edx, 30704);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1137
  pinsrw(xmm3, edx, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1138
  movsd(xmm0, Address(rsp, 112));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1139
  movapd(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1140
  movl(ecx, 32768);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1141
  movdl(xmm4, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1142
  movsd(xmm5, Address(tmp, 2128));         // 0x00000000UL, 0xffffe000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1143
  pextrw(eax, xmm0, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1144
  por(xmm0, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1145
  psllq(xmm0, 5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1146
  movl(ecx, 16352);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1147
  psrlq(xmm0, 34);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1148
  rcpss(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1149
  psllq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1150
  pshufd(xmm6, xmm5, 228);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1151
  psrlq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1152
  subl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1153
  cmpl(eax, 32736);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1154
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_0_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1155
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1156
  bind(L_2TAG_PACKET_1_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1157
  paddd(xmm0, xmm4);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1158
  por(xmm1, xmm3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1159
  movdl(edx, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1160
  psllq(xmm0, 29);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1161
  pand(xmm5, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1162
  pand(xmm0, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1163
  subsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1164
  mulpd(xmm5, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1165
  andl(eax, 32752);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1166
  subl(eax, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1167
  cvtsi2sdl(xmm7, eax);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1168
  mulsd(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1169
  movsd(xmm6, Address(tmp, 2064));         // 0xfefa3800UL, 0x3fa62e42UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1170
  movdqu(xmm3, Address(tmp, 2080));        // 0x92492492UL, 0x3fc24924UL, 0x00000000UL, 0xbfd00000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1171
  subsd(xmm5, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1172
  andl(edx, 16711680);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1173
  shrl(edx, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1174
  movdqu(xmm0, Address(tmp, edx));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1175
  movdqu(xmm4, Address(tmp, 2096));        // 0x3d6fb175UL, 0xbfc5555eUL, 0x55555555UL, 0x3fd55555UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1176
  addsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1177
  movdqu(xmm2, Address(tmp, 2112));        // 0x9999999aUL, 0x3fc99999UL, 0x00000000UL, 0xbfe00000UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1178
  mulsd(xmm6, xmm7);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1179
  pshufd(xmm5, xmm1, 68);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1180
  mulsd(xmm7, Address(tmp, 2072));         // 0x93c76730UL, 0x3ceef357UL, 0x92492492UL, 0x3fc24924UL
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1181
  mulsd(xmm3, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1182
  addsd(xmm0, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1183
  mulpd(xmm4, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1184
  mulpd(xmm5, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1185
  pshufd(xmm6, xmm0, 228);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1186
  addsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1187
  addpd(xmm4, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1188
  mulpd(xmm3, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1189
  subsd(xmm6, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1190
  mulsd(xmm4, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1191
  pshufd(xmm2, xmm0, 238);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1192
  addsd(xmm1, xmm6);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1193
  mulsd(xmm5, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1194
  addsd(xmm7, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1195
  addpd(xmm4, xmm3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1196
  addsd(xmm1, xmm7);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1197
  mulpd(xmm4, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1198
  addsd(xmm1, xmm4);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1199
  pshufd(xmm5, xmm4, 238);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1200
  addsd(xmm1, xmm5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1201
  addsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1202
  jmp(L_2TAG_PACKET_2_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1203
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1204
  bind(L_2TAG_PACKET_0_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1205
  movsd(xmm0, Address(rsp, 112));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1206
  movdqu(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1207
  addl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1208
  cmpl(eax, 32768);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1209
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_3_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1210
  cmpl(eax, 16);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1211
  jcc(Assembler::below, L_2TAG_PACKET_4_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1212
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1213
  bind(L_2TAG_PACKET_5_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1214
  addsd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1215
  jmp(L_2TAG_PACKET_2_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1216
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1217
  bind(L_2TAG_PACKET_6_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1218
  jcc(Assembler::above, L_2TAG_PACKET_5_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1219
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1220
  jcc(Assembler::above, L_2TAG_PACKET_5_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1221
  jmp(L_2TAG_PACKET_7_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1222
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1223
  bind(L_2TAG_PACKET_3_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1224
  movdl(edx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1225
  psrlq(xmm1, 32);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1226
  movdl(ecx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1227
  addl(ecx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1228
  cmpl(ecx, -2097152);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1229
  jcc(Assembler::aboveEqual, L_2TAG_PACKET_6_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1230
  orl(edx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1231
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1232
  jcc(Assembler::equal, L_2TAG_PACKET_8_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1233
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1234
  bind(L_2TAG_PACKET_7_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1235
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1236
  xorpd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1237
  movl(eax, 32752);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1238
  pinsrw(xmm1, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1239
  movl(edx, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1240
  mulsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1241
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1242
  bind(L_2TAG_PACKET_9_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1243
  movsd(Address(rsp, 0), xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1244
  movsd(xmm0, Address(rsp, 112));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1245
  fld_d(Address(rsp, 0));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1246
  jmp(L_2TAG_PACKET_10_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1247
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1248
  bind(L_2TAG_PACKET_8_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1249
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1250
  xorpd(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1251
  movl(eax, 49136);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1252
  pinsrw(xmm0, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1253
  divsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1254
  movl(edx, 2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1255
  jmp(L_2TAG_PACKET_9_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1256
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1257
  bind(L_2TAG_PACKET_4_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1258
  movdl(edx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1259
  psrlq(xmm1, 32);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1260
  movdl(ecx, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1261
  orl(edx, ecx);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1262
  cmpl(edx, 0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1263
  jcc(Assembler::equal, L_2TAG_PACKET_8_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1264
  xorpd(xmm1, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1265
  movl(eax, 18416);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1266
  pinsrw(xmm1, eax, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1267
  mulsd(xmm0, xmm1);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1268
  movapd(xmm1, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1269
  pextrw(eax, xmm0, 3);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1270
  por(xmm0, xmm2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1271
  psllq(xmm0, 5);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1272
  movl(ecx, 18416);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1273
  psrlq(xmm0, 34);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1274
  rcpss(xmm0, xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1275
  psllq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1276
  pshufd(xmm6, xmm5, 228);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1277
  psrlq(xmm1, 12);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1278
  jmp(L_2TAG_PACKET_1_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1279
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1280
  bind(L_2TAG_PACKET_2_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1281
  movsd(Address(rsp, 24), xmm0);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1282
  fld_d(Address(rsp, 24));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1283
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1284
  bind(L_2TAG_PACKET_10_0_2);
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1285
  movl(tmp, Address(rsp, 40));
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1286
}
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1287
6063f28a6efb 8139575: Update for x86 log in the math lib
iveresov
parents: 33089
diff changeset
  1288
#endif