From: Matthew Fernandez Date: Mon, 20 Dec 2021 16:08:19 +0000 (-0800) Subject: fpow32: make a static function X-Git-Tag: 3.0.0~103^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bba89b0ac5586c6c5f6e57dac0ed2f64bfbd23f3;p=graphviz fpow32: make a static function This function is not used outside of stuff.c. --- diff --git a/lib/neatogen/neatoprocs.h b/lib/neatogen/neatoprocs.h index baa252b7b..24d058eca 100644 --- a/lib/neatogen/neatoprocs.h +++ b/lib/neatogen/neatoprocs.h @@ -32,7 +32,6 @@ extern "C" { NEATOPROCS_API int checkStart(graph_t * G, int nG, int); NEATOPROCS_API int circuit_model(graph_t *, int); NEATOPROCS_API void diffeq_model(graph_t *, int); - NEATOPROCS_API double fpow32(double); NEATOPROCS_API Ppolyline_t getPath(edge_t *, vconfig_t *, int, Ppoly_t **, int); NEATOPROCS_API void heapdown(Agnode_t *); diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c index 28156a9df..688445cf2 100644 --- a/lib/neatogen/stuff.c +++ b/lib/neatogen/stuff.c @@ -21,7 +21,7 @@ static double Epsilon2; static Agnode_t *choose_node(graph_t *, int); -double fpow32(double x) +static double fpow32(double x) { x = sqrt(x); return x * x * x;