Artifacts Associated With Ticket 219224ffffffffff
Ticket change [3ea66799c4] (rid 121308) by nobody on 2000-10-26 05:03:48:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4088 RFE Version: 8.3b2 SubmitDate: '2000-01-26' LastModified: '2000-03-30' Severity: SER Status: Assigned Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: Soalrsi 7 64 bit Machine: Ultra Enterprise 4500 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: matthew Finch DesiredBehavior: Currently tclsh in its current form can only deal with numbers in the form of ints. It would be good and help the project Im working on if expr and format commands could deal with long longs' Currently I am looking at a the mpexpr pkg,but this doesnt take advantage of the byte code compiler I believe I don't know about long long's, but it would be nice to have Tcl at least properly supports longs throughout expressions and in the interpreter. -- 03/30/2000 hobbs
- foundin initialized to: "obsolete: 8.3b2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "10. Objects"
- title initialized to:
Ability for tclsh expr and format comands to handle long lo
- type initialized to: "RFE"
Ticket change [69e0b11a92] (rid 128054) by dkf on 2000-11-21 20:41:18:
- icomment:
What is the support for 64-bit integer types like across different compilers? I must admit that I don't follow this stuff very closely...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e00e4ff3ab] (rid 115125) by hobbs on 2000-11-22 01:34:28:
- icomment:
ANSI C (keyword *ANSI*) has 64 bit integer types as int64_t and uint64_t, but they aren't supported by all ANSI compilers - just those that want to provide 64bit int support. Windows has __int64. Where int64_t isn't yet supported, you might try simulating it with long long. An example that works on Windows, Linux (32-bit PIII) and Solaris (64-bit UltraSparc) is: <PRE> #ifdef _WIN32 #define int64_t __int64 #define uint64_t unsigned __int64 #else #include <sys/types.h> #endif #ifndef int64_t #define int64_t long long #define uint64_t unsigned long long #endif main() { uint64_t i = 0; printf("sizeof int64 = %d\n", sizeof(int64_t)); } </PRE> You can improve on that by actually checking along the way until you get an 8-byte wide integer type instead of making the assumptions. - login: "hobbs"
- mimetype: "text/plain"
- title changed to:
expr and format comands should handle long long (int64)
- username: "hobbs"
- icomment:
Ticket change [da21643475] (rid 107723) by dkf on 2000-11-22 17:00:26:
- icomment:
Wouldn't this be something for configure to discover for us?
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [983f15ba27] (rid 110575) by andreas_kupries on 2000-11-23 15:25:51:
- icomment:
Only as long as there is no cross-compiling going on. And using linux to cross-compile for windows is quite tempting (I have already started doing this (began last Friday)).
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [38c29d6912] (rid 112263) by dkf on 2001-06-06 22:22:43:
- icomment:
Logged In: YES user_id=79902 Hmm. Surely even when cross-compiling you can test to see if a thing will build? (That's the way configure works I believe...) Then, if a compiler handles int64_t as a meaningful type, or else __int64 or long long (in whatever order you care to choose.) The only problem comes when you have a compiler which doesn't know any of those but defines long to be 64-bit (I don't know if any such exist, of course.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [06aa53d793] (rid 89251) by hobbs on 2001-08-02 08:45:05:
- foundin changed to: "None"
- subsystem changed to: "None"
Ticket change [0ccb9e7fe0] (rid 114241) by andreas_kupries on 2001-08-25 01:24:29:
- subsystem changed to: "- New Builtin Object Types"
Ticket change [0c87911f0a] (rid 114194) by hobbs on 2002-01-17 01:42:36:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=72656 I believe this may fit in with dkf's 64-bit branch.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [2d6c97b51c] (rid 119067) by dkf on 2002-02-16 04:18:10:
- closedate changed to: "2002-02-15T21:18:10"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"