CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/*
|
|
* Copyright 2008-2009 Katholieke Universiteit Leuven
|
|
*
|
|
* Use of this software is governed by the MIT license
|
|
*
|
|
* Written by Sven Verdoolaege, K.U.Leuven, Departement
|
|
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
|
|
*/
|
|
|
|
#ifndef ISL_INT_H
|
|
#define ISL_INT_H
|
|
#define ISL_DEPRECATED_INT_H
|
|
|
|
#include <isl/hash.h>
|
|
#include <isl/printer.h>
|
|
#include <string.h>
|
|
#include <isl_config.h>
|
|
|
|
#ifdef USE_GMP_FOR_MP
|
|
#include <isl_int_gmp.h>
|
|
#endif
|
|
|
|
#ifdef USE_IMATH_FOR_MP
|
|
#ifdef USE_SMALL_INT_OPT
|
|
#include <isl_int_sioimath.h>
|
|
#else /* USE_SMALL_INT_OPT */
|
|
#include <isl_int_imath.h>
|
|
#endif /* USE_SMALL_INT_OPT */
|
|
#endif /* USE_IMATH_FOR_MP */
|
|
|
|
#define isl_int_is_zero(i) (isl_int_sgn(i) == 0)
|
|
#define isl_int_is_one(i) (isl_int_cmp_si(i,1) == 0)
|
|
#define isl_int_is_negone(i) (isl_int_cmp_si(i,-1) == 0)
|
|
#define isl_int_is_pos(i) (isl_int_sgn(i) > 0)
|
|
#define isl_int_is_neg(i) (isl_int_sgn(i) < 0)
|
|
#define isl_int_is_nonpos(i) (isl_int_sgn(i) <= 0)
|
|
#define isl_int_is_nonneg(i) (isl_int_sgn(i) >= 0)
|
|
|
|
#ifndef USE_SMALL_INT_OPT
|
|
#define isl_int_print(out,i,width) \
|
|
do { \
|
|
char *s; \
|
|
s = isl_int_get_str(i); \
|
|
fprintf(out, "%*s", width, s); \
|
|
isl_int_free_str(s); \
|
|
} while (0)
|
|
#endif /* USE_SMALL_INT_OPT */
|
|
|
|
__isl_give isl_printer *isl_printer_print_isl_int(__isl_take isl_printer *p,
|
|
isl_int i);
|
|
|
|
#endif /* ISL_INT_H */
|