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

v64df_ispos.c « amdgcn « machine « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee691be4135bbe93a8f8fa6121e94d721798b489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Based on newlib/libm/mathfp/s_ispos.c in Newlib.  */

#include "amdgcnmach.h"

v64si 
v64df_ispos (v64df x)
{
  // Explicitly create mask for internal function.
  v64si __mask = VECTOR_INIT (-1);
  FUNCTION_INIT (v64si);

  v64si hx;
  GET_HIGH_WORD (hx, x, NO_COND);

  VECTOR_RETURN ((hx & 0x80000000) == 0, NO_COND);

  FUNCTION_RETURN;
}