How to use we use int64?


 
Thread Tools Search this Thread
Top Forums Programming How to use we use int64?
# 1  
Old 11-27-2009
Java How to use we use int64?

Recently my project needs int64 variables. However my os and computer are both 32bits.
So how can i use int64 as a parameter in a function.
and is int64 a structure as user-defined structures.....
???
thanx
i am waiting for ur answerSmilie
# 2  
Old 11-27-2009
Code:
#include <stdint.h>

int64_t e uint64_t.

On a 32 bit machine it is usually defined as (glibc code)

Code:
typedef unsigned long long int  uint64_t;

The compiler will probably use two registers to contain the data.

Hope it helps.

S.
# 3  
Old 12-08-2009
MySQL How to use we use int64?

you could create a structure with two integer and typedef as unit64,
but the operation you are doing on this data types should be done through some function

like
int64 a = 100 /* will not work */

int64 a;
setValue(&a,..);


for all the operation you need to write the funcitons.because it not a ADT like int.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl:: Arrays w/ UInt64.max>index>Int64

Where is the delete or remove post option? (1 Reply)
Discussion started by: f77hack
1 Replies

2. Programming

messy questions: how to convert a string into a int64 in linux

Recently I was stuck at 64bit questions in 32pc....... lots of unknown questions came up .... as mentioned : messy questions: how to convert a string into a int64 in linux i tried ll = atoll(string) but faild btw: ll is defined as : long long ll = 0; I print the return like this:... (2 Replies)
Discussion started by: macroideal
2 Replies

3. Programming

char to int64 conversion

Hi, I'm converting a C program that I made using the Visual Studio. I now use GCC (over Linux) and can't find some equivalences. I changed my __int64 definitions to unsigned long long, but can't find an equivalent to the microsoft i64toa() function, which let you convert a char* to a 64 bit... (1 Reply)
Discussion started by: Raspoutine
1 Replies
Login or Register to Ask a Question