1 /*
2 Copyright (C) 2016-2021, Dirk Krause
3 SPDX-License-Identifier: BSD-3-Clause
4 */
5 
6 /*
7 	WARNING: This file was generated by the dkct program (see
8 	http://dktools.sourceforge.net/ for details).
9 	Changes you make here will be lost if dkct is run again!
10 	You should modify the original source and run dkct on it.
11 	Original source: dk4maci16.ctr
12 */
13 
14 /**	@file dk4maci16.c The dk4maci16 module.
15 */
16 
17 
18 #include "dk4conf.h"
19 #include <libdk4ma/dk4maci16.h>
20 
21 
22 int
dk4ma_int16_t_compare(int16_t s,uint16_t u)23 dk4ma_int16_t_compare(int16_t s, uint16_t u)
24 {
25   int		 back = 0;
26   if (0 > s) {
27     back = -1;
28   } else {
29     if ((uint16_t)s > u) {
30       back = 1;
31     } else {
32       if ((uint16_t)s < u) {
33         back = -1;
34       }
35     }
36   }
37   return back;
38 }
39 
40