|
Re: Integer-only mode?: msg#00168db.sqlite.general
--- In sqlite-F5Bj5G+ccuY@xxxxxxxxxxxxxxxx, "hardinginst" <ambw@xxxx> wrote: > > --- In sqlite-F5Bj5G+ccuY@xxxxxxxxxxxxxxxx, "hardinginst" <ambw@xxxx> wrote: > > > In our embedded port of SQLite we do not require floating point > > > support. Looking through the code, I don't see an easy way of > > > eliminating the floating point code, but we may have a go at it. > > > It is an embedded application, and a lot of embedded processors do > not support floating point in hardware. The emulation of the > floating point can be quite slow and adds a large library so it does > have an effect. Our application does not store FP numbers either. > > I'm thinking that adding some preprocessor defines like: > #define float long > #define double long > #define strtod atol > > might do the trick. Any other ideas? (after a quick look at the source) - #defines should get most of the work done. You might want to link in custom versions of some functions. Not sure. - Watch out for "printf.c". Just redefining double in there might not work. - sqliteRealToSortable() is a function that will require some work? - the parser will still parse floats so you might want to add asserts into some fns like sqlite_set_result_double() just to be safe. Jim Lyon ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: sqlite-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: SQLite with Borland C++ Builder 6.0?: 00168, Luc Saint-Elie |
|---|---|
| Next by Date: | Re: Integer-only mode?: 00168, hardinginst |
| Previous by Thread: | Re: Integer-only mode?i: 00168, hardinginst |
| Next by Thread: | Compile into lib/dll: 00168, sukhada_tap |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |