mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 09:12:32 +00:00
7a25bf2d19
Fixes #265.
20 lines
1.0 KiB
C
20 lines
1.0 KiB
C
/* This file is automatically generated by gen-fac_ui.c */
|
|
|
|
#if GMP_NUMB_BITS != 64
|
|
Error , error this data is for 64 GMP_NUMB_BITS only
|
|
#endif
|
|
#if GMP_LIMB_BITS != 64
|
|
Error , error this data is for 64 GMP_LIMB_BITS only
|
|
#endif
|
|
/* This table is 0!,1!,2!,3!,...,n! where n! has <= GMP_NUMB_BITS bits */
|
|
#define ONE_LIMB_FACTORIAL_TABLE CNST_LIMB(0x1),CNST_LIMB(0x1),CNST_LIMB(0x2),CNST_LIMB(0x6),CNST_LIMB(0x18),CNST_LIMB(0x78),CNST_LIMB(0x2d0),CNST_LIMB(0x13b0),CNST_LIMB(0x9d80),CNST_LIMB(0x58980),CNST_LIMB(0x375f00),CNST_LIMB(0x2611500),CNST_LIMB(0x1c8cfc00),CNST_LIMB(0x17328cc00),CNST_LIMB(0x144c3b2800),CNST_LIMB(0x13077775800),CNST_LIMB(0x130777758000),CNST_LIMB(0x1437eeecd8000),CNST_LIMB(0x16beecca730000),CNST_LIMB(0x1b02b9306890000),CNST_LIMB(0x21c3677c82b40000)
|
|
|
|
/* is 2^(GMP_LIMB_BITS+1)/exp(1) */
|
|
#define FAC2OVERE CNST_LIMB(0xbc5c254b96be9524)
|
|
|
|
/* FACMULn is largest odd x such that x*(x+2)*...*(x+2(n-1))<=2^GMP_NUMB_BITS-1 */
|
|
|
|
#define FACMUL2 CNST_LIMB(0xffffffff)
|
|
#define FACMUL3 CNST_LIMB(0x285143)
|
|
#define FACMUL4 CNST_LIMB(0xfffd)
|