File: cimagl.c

package info (click to toggle)
picolibc 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,124 kB
  • sloc: ansic: 266,005; asm: 22,255; perl: 2,388; sh: 1,016; python: 994; exp: 282; makefile: 94; xml: 39
file content (16 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (9)
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
cimagl (long double complex z)
{
  long_double_complex w = { .z = z };

  return IMAG_PART (w);
}