Re: Using CPU flags in C

Florian Weimer via Gcc-help <[email protected]>
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
> How is this code integrated into C? Would it be used like this? But
> can I get the -6 value at the same time?
> if(asm_add(36, -42)<0){
>     printf("negative\n");
> }else{
>     printf("positive\n");
> }

See the example I posted.  You can use a bool variable.

Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.