Line data Source code
1 : /* File: u8_f64.inl; Copyright and License: see below */ 2 : 3 257 : static inline double u8_f64_max2 ( const double a, const double b ) 4 : { 5 257 : return ( a > b ? a : b ); 6 : } 7 : 8 1 : static inline double u8_f64_max3 ( const double a, const double b, const double c ) 9 : { 10 1 : return ( a > b ? ( a > c ? a : c ) : ( b > c ? b : c ) ); 11 : } 12 : 13 1 : static inline double u8_f64_min2 ( const double a, const double b ) 14 : { 15 1 : return ( a < b ? a : b ); 16 : } 17 : 18 1 : static inline double u8_f64_min3 ( const double a, const double b, const double c ) 19 : { 20 1 : return ( a < b ? ( a < c ? a : c ) : ( b < c ? b : c ) ); 21 : } 22 : 23 : 24 : /* 25 : Copyright 2023-2024 Andreas Warnke 26 : 27 : Licensed under the Apache License, Version 2.0 (the "License"); 28 : you may not use this file except in compliance with the License. 29 : You may obtain a copy of the License at 30 : 31 : http://www.apache.org/licenses/LICENSE-2.0 32 : 33 : Unless required by applicable law or agreed to in writing, software 34 : distributed under the License is distributed on an "AS IS" BASIS, 35 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 : See the License for the specific language governing permissions and 37 : limitations under the License. 38 : */