source: trunk/libs/newlib/src/newlib/libm/complex/creall.c @ 620

Last change on this file since 620 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 368 bytes
Line 
1/* Copyright (C) 2015 by  Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
7#include <complex.h>
8#include "../common/fdlibm.h"
9
10long double
11creall (long double complex z)
12{
13  long_double_complex w = { .z = z };
14
15  return (REAL_PART(w));
16}
Note: See TracBrowser for help on using the repository browser.