From 09c818ecb4465aa6e51e109e7a8eae121f326c3e Mon Sep 17 00:00:00 2001 From: solar Date: Sat, 15 May 2010 00:34:40 +0000 Subject: [PATCH] Added imaxdiv_t (for inttypes.h). --- platform/example_64/internals/_PDCLIB_config.h | 9 +++++++++ platform/example_cygwin/internals/_PDCLIB_config.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/platform/example_64/internals/_PDCLIB_config.h b/platform/example_64/internals/_PDCLIB_config.h index 319e5de..65abc89 100644 --- a/platform/example_64/internals/_PDCLIB_config.h +++ b/platform/example_64/internals/_PDCLIB_config.h @@ -145,6 +145,15 @@ struct _PDCLIB_lldiv_t /* You are also required to state the literal suffix for the intmax type */ #define _PDCLIB_INTMAX_LITERAL ll +/* defines imaxdiv(), which is equivalent to the div() function */ +/* family (see further above) with intmax_t as basis. */ + +struct _PDCLIB_imaxdiv_t +{ + _PDCLIB_intmax quot; + _PDCLIB_intmax rem; +}; + /* -------------------------------------------------------------------------- */ /* Floating Point */ /* -------------------------------------------------------------------------- */ diff --git a/platform/example_cygwin/internals/_PDCLIB_config.h b/platform/example_cygwin/internals/_PDCLIB_config.h index fce58b6..78397be 100644 --- a/platform/example_cygwin/internals/_PDCLIB_config.h +++ b/platform/example_cygwin/internals/_PDCLIB_config.h @@ -145,6 +145,15 @@ struct _PDCLIB_lldiv_t /* You are also required to state the literal suffix for the intmax type */ #define _PDCLIB_INTMAX_LITERAL ll +/* defines imaxdiv(), which is equivalent to the div() function */ +/* family (see further above) with intmax_t as basis. */ + +struct _PDCLIB_imaxdiv_t +{ + _PDCLIB_intmax quot; + _PDCLIB_intmax rem; +}; + /* -------------------------------------------------------------------------- */ /* Floating Point */ /* -------------------------------------------------------------------------- */ -- 2.40.0