Charles Boyd on Tue, 18 Oct 2011 06:00:09 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Fwd: embedding GP in GUI applications (android-port) |
I am not sure that would work: gp_read_stream() read the file until EOF.
You need to divert pariErr. Create you own PariOUT object which is defined in
paristio.h as follow:
typedef struct PariOUT {
void (*putch)(char);
void (*puts)(const char*);
void (*flush)(void);
} PariOUT;
so define your own method
PariOUT droidErr = {droidputch, droidputs, droidflush};
and set pariErr=&droidErr
We might provide a better solution in the future.
For the website, I would suggest you modify slightly the logo (maybe just
add "droid" under PARI) so that people do not expect that clicking on the logo
bring them to the PARI web site.
For the icon, actually the logo was the icon initially so it should be fine.
I have written an inline arm assembly level0 kernel for PARI (a long time ago), but I
have never commited it because at the time it was very hard to know whether an
ARM platform has 32x32->64 unsigned multiplication (UMULL)
Do you know if android platform consistently provide UMULL and whether the performance are
better than four MUL ?
Also it may be possible to add a flag to Configure to generate the android pari.cfg
automatically, now that we know what to write.