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