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/22 21:13:18 UTC

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

     [ https://issues.apache.org/jira/browse/TS-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom reassigned TS-1764:
---------------------------------

    Assignee: Leif Hedstrom
    
> Unify definitions of MAX() and MIN()
> ------------------------------------
>
>                 Key: TS-1764
>                 URL: https://issues.apache.org/jira/browse/TS-1764
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Leif Hedstrom
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.2
>
>
> 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