Article View: borland.public.cppbuilder.nativeapi
Article #14702Re: How to define own data type ?
From: Bob Gonder
Date: Sun, 03 Aug 2003 17:06
Date: Sun, 03 Aug 2003 17:06
20 lines
1620 bytes
1620 bytes
ScOe wrote:
>I need data type that can hold value with more than 30 digits. int64 has 19
>or so ...
>I've read something about it in assembler book but i'm not sure if i can use
>it in c++. If i define variable of that type in assembler how will i get
>access to it from c++.
struct INT_128
{ int_64 low_128;
int_64 high_128;
}int_128,*pint_128;
extern "C" pint_128 asm_128;
.asm
_asm_128 db 0 dup(16)
I suppose you'd want to change the struct into a class with function
overloads. Your class functions would likely call asm "C" routines to
do all the work.
Technical Details
Message-ID:
<hlfqivsqlj2ugvk45ktkc0udhppqai31he@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f2ce6c3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6f035c9ee86ac9d1 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-03 10:09:38 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to define own data type ? Date: Sun, 03 Aug 2003 10:06:11 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <hlfqivsqlj2ugvk45ktkc0udhppqai31he@4ax.com> References: <3f2ce6c3@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.176.116 X-Trace: newsgroups.borland.com 1059930373 67.31.176.116 (3 Aug 2003 10:06:13 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail