System V IPC code from Danny Boulet, chewed on a bit by the NetBSD group
[unix-history] / lib / libF77 / cabs.c
CommitLineData
547779a8
WH
1#ifdef KR_headers
2extern double sqrt();
3double f__cabs(real, imag) double real, imag;
4#else
5#undef abs
6#include "math.h"
7double f__cabs(double real, double imag)
8#endif
9{
ad4581d8
WH
10struct {double x, y;} z;
11z.x = real;
12z.y = imag;
13return cabs(z);
547779a8 14}