Re: [sqlite] 64bit on 32bit machine
Thank you very much Andrew. Regards, Lloyd On Thu, 2007-07-12 at 23:37 -0500, Andrew Finkenstadt wrote: > Use sqlite_int64 as your type. That typedef supports 'long long' or 'signed > __int64' or whatever the compiler environment needs. > > --a > > On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: > > > > Thanks Andy. > > So, SQLite doesn't have its own features to manage this? So I must be > > able to perform 64bit operations on a 32bit machine using C. How can I > > do that? or how to declare a 64bit integer on a 32bit machine? > > > > Thanks, > > Lloyd > > > > > > > > On Thu, 2007-07-12 at 15:06 -0500, Andrew Finkenstadt wrote: > > > It uses the feature built-in to the language compiler that you use. > > > > > > In the case of Visual Studio (Microsoft, x86) the underlying compiler > > uses > > > either the library implementations or direct assembly code using pairs > > of > > > registers and whatever dual-register assembly instructions are available > > on > > > the specific CPU. > > > > > > In the case of GCC, the underlying compiler uses whatever made sense in > > its > > > library implementation. Usually intrinsics are used in release mode, > > and > > > library functions are used in debug mode. > > > > > > --andy > > > > > > On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > Can I know how SQLite performs 64bit operations (addition, > > > > multiplication, division) on 32bit machine? > > > > > > > > Thank you very much, > > > > Lloyd > > > > > > > > > > > > __ > > > > Scanned and protected by Email scanner > > > > > > > > > > > > > > - > > > > To unsubscribe, send email to [EMAIL PROTECTED] > > > > > > > > > > - > > > > > > > > > > > > > > __ > > Scanned and protected by Email scanner > > > > > > - > > To unsubscribe, send email to [EMAIL PROTECTED] > > > > - > > > > __ Scanned and protected by Email scanner - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] 64bit on 32bit machine
Use sqlite_int64 as your type. That typedef supports 'long long' or 'signed __int64' or whatever the compiler environment needs. --a On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: Thanks Andy. So, SQLite doesn't have its own features to manage this? So I must be able to perform 64bit operations on a 32bit machine using C. How can I do that? or how to declare a 64bit integer on a 32bit machine? Thanks, Lloyd On Thu, 2007-07-12 at 15:06 -0500, Andrew Finkenstadt wrote: > It uses the feature built-in to the language compiler that you use. > > In the case of Visual Studio (Microsoft, x86) the underlying compiler uses > either the library implementations or direct assembly code using pairs of > registers and whatever dual-register assembly instructions are available on > the specific CPU. > > In the case of GCC, the underlying compiler uses whatever made sense in its > library implementation. Usually intrinsics are used in release mode, and > library functions are used in debug mode. > > --andy > > On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Can I know how SQLite performs 64bit operations (addition, > > multiplication, division) on 32bit machine? > > > > Thank you very much, > > Lloyd > > > > > > __ > > Scanned and protected by Email scanner > > > > > > - > > To unsubscribe, send email to [EMAIL PROTECTED] > > > > - > > > > __ Scanned and protected by Email scanner - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] 64bit on 32bit machine
Thanks Andy. So, SQLite doesn't have its own features to manage this? So I must be able to perform 64bit operations on a 32bit machine using C. How can I do that? or how to declare a 64bit integer on a 32bit machine? Thanks, Lloyd On Thu, 2007-07-12 at 15:06 -0500, Andrew Finkenstadt wrote: > It uses the feature built-in to the language compiler that you use. > > In the case of Visual Studio (Microsoft, x86) the underlying compiler uses > either the library implementations or direct assembly code using pairs of > registers and whatever dual-register assembly instructions are available on > the specific CPU. > > In the case of GCC, the underlying compiler uses whatever made sense in its > library implementation. Usually intrinsics are used in release mode, and > library functions are used in debug mode. > > --andy > > On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Can I know how SQLite performs 64bit operations (addition, > > multiplication, division) on 32bit machine? > > > > Thank you very much, > > Lloyd > > > > > > __ > > Scanned and protected by Email scanner > > > > > > - > > To unsubscribe, send email to [EMAIL PROTECTED] > > > > - > > > > __ Scanned and protected by Email scanner - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] 64bit on 32bit machine
It uses the feature built-in to the language compiler that you use. In the case of Visual Studio (Microsoft, x86) the underlying compiler uses either the library implementations or direct assembly code using pairs of registers and whatever dual-register assembly instructions are available on the specific CPU. In the case of GCC, the underlying compiler uses whatever made sense in its library implementation. Usually intrinsics are used in release mode, and library functions are used in debug mode. --andy On 7/12/07, Lloyd <[EMAIL PROTECTED]> wrote: Hi, Can I know how SQLite performs 64bit operations (addition, multiplication, division) on 32bit machine? Thank you very much, Lloyd __ Scanned and protected by Email scanner - To unsubscribe, send email to [EMAIL PROTECTED] -
[sqlite] 64bit on 32bit machine
Hi, Can I know how SQLite performs 64bit operations (addition, multiplication, division) on 32bit machine? Thank you very much, Lloyd __ Scanned and protected by Email scanner - To unsubscribe, send email to [EMAIL PROTECTED] -