diff options
author | Norbert Preining <norbert@preining.info> | 2020-10-12 03:04:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-10-12 03:04:00 +0000 |
commit | 0ce40abb18ec02ec6fd6bcc5f21612c88daa7578 (patch) | |
tree | 416289fe1448873fd8ca33051f50ad85bffa8aaa /support/dktools/dk4macll.ctr | |
parent | fdb18507cd80dc17f5a5256153d34668b4f4e61c (diff) |
CTAN sync 202010120303
Diffstat (limited to 'support/dktools/dk4macll.ctr')
-rw-r--r-- | support/dktools/dk4macll.ctr | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/support/dktools/dk4macll.ctr b/support/dktools/dk4macll.ctr deleted file mode 100644 index bf813cda47..0000000000 --- a/support/dktools/dk4macll.ctr +++ /dev/null @@ -1,82 +0,0 @@ -%% options - -copyright owner = Dirk Krause -copyright year = 2015-xxxx -SPDX-License-Identifier: BSD-3-Clause - - - -%% header - -/** @file - Comparison between signed and unsigned - long long. -*/ - -#ifndef DK4CONF_H_INCLUDED -#if DK4_BUILDING_DKTOOLS4 -#include "dk4conf.h" -#else -#include <dktools-4/dk4conf.h> -#endif -#endif - -#ifndef DK4TYPES_H_INCLUDED -#if DK4_BUILDING_DKTOOLS4 -#include "dk4types.h" -#else -#include <dktools-4/dk4types.h> -#endif -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - -#if DK4_HAVE_LONG_LONG - -/** Compare signed and unsigned long long. - @param s Signed long long. - @param u Unsigned long long. - @return 1 if s>u, 0 if s==u, -1 if s<u. -*/ -int -dk4ma_long_long_compare(long long s, unsigned long long u); - -#endif - -#ifdef __cplusplus -} -#endif - - - -%% module - -#include "dk4conf.h" -#include "dk4macll.h" - -#if DK4_HAVE_LONG_LONG - -int -dk4ma_long_long_compare(long long s, unsigned long long u) -{ - int back = 0; - if (0LL > s) { - back = -1; - } else { - if ((unsigned long long)s < u) { - back = -1; - } else { - if ((unsigned long long)s > u) { - back = 1; - } - } - } - return back; -} - -#endif - |