aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/complex/creall.c
blob: 7aa88c272853c67072a57bf9e90ad52beb8acef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright (C) 2015 by  Red Hat, Incorporated. All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * is freely granted, provided that this notice is preserved.
 */

#include <complex.h>
#include "../common/fdlibm.h"

long double
creall (long double complex z)
{
  long_double_complex w = { .z = z };

  return (REAL_PART(w));
}