|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Nov 2002
Messaggi: 6396
|
[C] Extended assembly
Ciao a tutti,
sto cercando di richiamare la funzione seno direttamente da Assembly: Codice:
#include <stdio.h>
float asm_sin(float angle){
float result;
asm("fsinx %1,%0" : "=&f" (result) : "f" (angle));
return result;
}
int main(){
float angle = 0.5;
printf(" angolo %f seno %f",angle,asm_sin(angle));
return 0;
}
Codice:
asm.c:7: error: output constraint 0 must specify a single register |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 04:06.



















