LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: ntubski
Forum: Programming 03-17-2024, 11:11 PM
Replies: 11
Views: 268
Posted By ntubski
Yeah, because otherwise it will try to pop st(0)...

Yeah, because otherwise it will try to pop st(0) into st(0) which makes no sense.
Forum: Programming 03-16-2024, 07:45 PM
Replies: 11
Views: 268
Posted By ntubski
Hmm, it compiles on godbolt.org, but on Mingw I...

Hmm, it compiles on godbolt.org, but on Mingw I get "Error: junk `((%rcx))' after expression" and on my Debian box I get "Error: invalid instruction suffix for `fld'".


The "t" is st(0), and it's...
Forum: Programming 03-15-2024, 10:57 PM
Replies: 11
Views: 268
Posted By ntubski
Hmm, the following compiles for me: /* Add...

Hmm, the following compiles for me:

/* Add the first 3 elements of t1, and put the result in x */
float x;
asm (
"flds %1;\n"
"flds %2;\n"
"faddp;\n"
"fadds...
Forum: Programming 03-14-2024, 06:09 PM
Replies: 11
Views: 268
Posted By ntubski
Oh, I saw 2 float in your example and assumed...

Oh, I saw 2 float in your example and assumed that was the whole array. Actually, now I'm seeing my suggestion only works with an array up to size 4 (and the size has to be visible at compile time)....
Forum: Programming 03-13-2024, 09:58 PM
Replies: 11
Views: 268
Posted By ntubski
Hmm, I get the same code output with (Global_t1)...

Hmm, I get the same code output with (Global_t1) as with (*Global_t1). I would suggest using register constraints and then letting the compiler figure out how to move the data instead of hard-coding...
Showing results 1 to 5 of 5

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration