C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

utilities.h
1 /* file: utilities.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 #ifndef __SERVICES_INTERNAL_UTILITIES_H__
17 #define __SERVICES_INTERNAL_UTILITIES_H__
18 
19 namespace daal
20 {
21 namespace services
22 {
23 namespace internal
24 {
25 
26 template <typename T>
27 inline const T & minValue(const T & a, const T & b) { return !(b < a) ? a : b; }
28 
29 template <typename T>
30 inline const T & maxValue(const T & a, const T & b) { return (a < b) ? b : a; }
31 
32 } // namespace internal
33 } // namespace services
34 } // namespace daal
35 
36 #endif
daal
Definition: algorithm_base_common.h:31

For more complete information about compiler optimizations, see our Optimization Notice.