Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
asmmath.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdio.h>
4
5namespace nem
6{
7 namespace experimental
8 {
9 namespace asmmath
10 {
11 void mul(int a, int b)
12 {
13 /*int dst = a;
14 asm("imull %1, %0"
15 : "+r" (dst)
16 : "r" (b));
17
18 printf("%d\n", dst);*/
19 }
20
21 void sin(float t)
22 {
23 /*float result;
24 asm("fsin"
25 : "=t" (result)
26 : "0" (t));
27
28 printf("sin(%f) = %f\n", t, result);*/
29 }
30 }
31 }
32}
void mul(int a, int b)
Definition asmmath.hpp:11
Definition config.hpp:16