You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/03/20 17:53:15 UTC

[jira] [Created] (TS-1764) Unify definitions of MAX() and MIN()

Leif Hedstrom created TS-1764:
---------------------------------

             Summary: Unify definitions of MAX() and MIN()
                 Key: TS-1764
                 URL: https://issues.apache.org/jira/browse/TS-1764
             Project: Traffic Server
          Issue Type: Bug
            Reporter: Leif Hedstrom


There are a few duplications of these definitions, this would be splendid to unify into one definition for each (yes amc, I know there's std::max :-).

{code}
loki (10:48) 892/0 $ tsg 'MAX\(' | grep define
/home/leif/apache/trafficserver.git/proxy/PluginVC.cc: #define MAX(x,y) (((x) >= (y)) ? (x) : (y))
/home/leif/apache/trafficserver.git/proxy/MuxVC.cc: #define MAX(x,y) (x >= y) ? x : y;
/home/leif/apache/trafficserver.git/iocore/net/P_InkBulkIO.h: #define MAX(x, y) (x > y ? x : y)
loki (10:48) 893/0 $ tsg 'MIN\(' | grep define
/home/leif/apache/trafficserver.git/proxy/http/HttpTunnel.cc: #define MIN(x,y) ((x) <= (y)) ? (x) : (y);
/home/leif/apache/trafficserver.git/proxy/PluginVC.cc: #define MIN(x,y) (((x) <= (y)) ? (x) : (y))
/home/leif/apache/trafficserver.git/proxy/InkAPITestTool.cc: #define MIN(_x, _y) ((_x < _y) ? _x : _y)
/home/leif/apache/trafficserver.git/proxy/MuxVC.cc: #define MIN(x,y) (x <= y) ? x : y;
/home/leif/apache/trafficserver.git/example/thread-pool/psi.c: #define MIN(x,y) ((x < y) ? x :y)
/home/leif/apache/trafficserver.git/iocore/net/NetVCTest.cc: #define MIN(x,y) (x <= y) ? x : y;
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira