In some cases the license-identification header was missing, so I added that as well. Replaced the remaining headers that specifically identified "Versions 3.13.7 and higher". Makefiles and the build system were deliberately excluded.
40 lines
889 B
C++
40 lines
889 B
C++
/*************************************************************************\
|
|
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
|
* National Laboratory.
|
|
* Copyright (c) 2002 The Regents of the University of California, as
|
|
* Operator of Los Alamos National Laboratory.
|
|
* SPDX-License-Identifier: EPICS
|
|
* EPICS Base is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
\*************************************************************************/
|
|
|
|
#include <assert.h>
|
|
|
|
#include "tsMinMax.h"
|
|
|
|
int main ()
|
|
{
|
|
float f1 = 3.3f;
|
|
float f2 = 3.4f;
|
|
float f3;
|
|
|
|
f3 = tsMin(f1,f2);
|
|
assert(f3==f1);
|
|
|
|
f3 = tsMax(f1,f2);
|
|
assert(f3==f2);
|
|
|
|
int i1 = 3;
|
|
int i2 = 4;
|
|
int i3;
|
|
|
|
i3 = tsMin(i1,i2);
|
|
assert(i3==i1);
|
|
|
|
i3 = tsMax(i1,i2);
|
|
assert(i3==i2);
|
|
|
|
return 0;
|
|
}
|
|
|