/* Copyright (C) 2015-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk4macm.ctr */ /** @file dk4macm.c The dk4macm module. */ #line 57 "dk4macm.ctr" #include "dk4conf.h" #include "dk4macm.h" #if DK4_HAVE_INTMAX_T int dk4ma_intmax_t_compare(intmax_t s, uintmax_t u) { int back = 0; if ((intmax_t)0L > s) { back = -1; } else { if ((uintmax_t)s < u) { back = -1; } else { if ((uintmax_t)s > u) { back = 1; } } } return back; } #endif