OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libm/] [math/] [wf_cabs.c] - Blame information for rev 855

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * cabsf() wrapper for hypotf().
3
 *
4
 * Written by J.T. Conklin, <jtc@wimsey.com>
5
 * Placed into the Public Domain, 1994.
6
 */
7
 
8
#include "fdlibm.h"
9
 
10
struct complex {
11
        float x;
12
        float y;
13
};
14
 
15
float
16
cabsf(z)
17
        struct complex z;
18
{
19
        return hypotf(z.x, z.y);
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.