| delorie.com/archives/browse.cgi | search |
| Message-ID: | <330DF600.7C4C@post.comstar.ru> |
| Date: | Fri, 21 Feb 1997 11:22:40 -0800 |
| From: | Dim Zegebart <zager AT post DOT comstar DOT ru> |
| Reply-To: | zager AT post DOT comstar DOT ru |
| Organization: | zager AT post DOT comstar DOT ru |
| MIME-Version: | 1.0 |
| To: | DJGPP Mail List <djgpp AT delorie DOT com> |
| Subject: | Re: fixed point math: SOLUTION!!! |
| References: | <5egfq4$3pk AT nr1 DOT toronto DOT istar DOT net> <5eh67b$m3i AT news DOT ox DOT ac DOT uk> <330CEF04 DOT 189D AT post DOT comstar DOT ru> <5eicru$dft AT news DOT ox DOT ac DOT uk> |
George Foot wrote:
>
> Dim Zegebart (zager AT post DOT comstar DOT ru) wrote:
>
> : I read in GCC info (C Extensions chapter) what the best way to do such
> : things is :
>
> : #define substruct(a,b) ({int _a=a,_b=b,x;x=_a-_b;})
> YM subtract :)
>
> This is fine if you're not worried about portability. It's a GNU C extension,
> though, which means that other compilers aren't likely to support it.
I know it. But it seems to me what gcc is not implemented on Z80 only ;)
--
Regards,
Dim Zegebart,
Moscow Russia.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |