Welcome to mirror list, hosted at ThFree Co, Russian Federation.

v64sf_log2.c « amdgcn « machine « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74c9c4eb8ca696337b9ab620c356af67265c03a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "amdgcnmach.h"

v64sf v64sf_logf_aux (v64sf, v64si);

static const float C3 = 1.4426950408889634073599246810019;

DEF_VS_MATH_FUNC (v64sf, log2f, v64sf x)
{
  return v64sf_logf_aux (x, __mask) * C3;
}

DEF_VARIANTS (log2f, sf, sf)