]> pd.if.org Git - pdclib/commitdiff
Added imaxdiv_t (for inttypes.h).
authorsolar <unknown>
Sat, 15 May 2010 00:32:23 +0000 (00:32 +0000)
committersolar <unknown>
Sat, 15 May 2010 00:32:23 +0000 (00:32 +0000)
platform/example/internals/_PDCLIB_config.h

index d851df5d7f16410e46c11bf4ed9ef98928d80edc..4251522bc4ec88d0b787c2878f5d16cdafe7b3c8 100644 (file)
@@ -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
 
+/* <inttypes.h> 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                                                             */
 /* -------------------------------------------------------------------------- */