bubaflub / parrot-gmp

GMP bindings for Parrot
http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/bubaflub/1
Artistic License 2.0
6 stars 1 forks source link

Probe mp_size_t and mp_exp_t types #12

Open bubaflub opened 13 years ago

bubaflub commented 13 years ago

As noted in gmph2ncidef.pl lines 24-27, both mp_size_t and mp_exp_t are ints if _CRAY and _CRAYMPP are not defined. This is normally the case and so I've hardcoded both of these types to map to the "i" NCI type. A smarter solution would be to have a small C program compile and run and output what these values actually are; for now it's not needed.

bubaflub commented 13 years ago

Commit 9351ba7eef00288c also lists other types that would need probing. The defaults should be safe for now.

bubaflub commented 13 years ago

f0a0a00 adds a C script that prints out this information.