CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/CPUInfo/output-px4.txt
Views: 1798
1
Type sizes:
2
char : 1
3
short : 2
4
int : 4
5
long : 4
6
long long : 8
7
bool : 1
8
void* : 4
9
10
Operation timings:
11
Note: timings for some operations are very data dependent
12
nop 0.01 usec/call
13
cli/sei 0.75 usec/call
14
micros() 1.06 usec/call
15
millis() 1.74 usec/call
16
fadd 0.05 usec/call
17
fsub 0.05 usec/call
18
fmul 0.05 usec/call
19
fdiv 0.14 usec/call
20
dadd 0.64 usec/call
21
dsub 0.60 usec/call
22
dmul 0.32 usec/call
23
ddiv 0.41 usec/call
24
sin() 19.55 usec/call
25
cos() 18.01 usec/call
26
tan() 36.85 usec/call
27
acos() 34.71 usec/call
28
asin() 38.37 usec/call
29
atan2() 29.86 usec/call
30
sqrt() 5.55 usec/call
31
iadd8 0.04 usec/call
32
isub8 0.05 usec/call
33
imul8 0.05 usec/call
34
idiv8 0.07 usec/call
35
iadd16 0.05 usec/call
36
isub16 0.05 usec/call
37
imul16 0.05 usec/call
38
idiv16 0.06 usec/call
39
iadd32 0.04 usec/call
40
isub32 0.04 usec/call
41
imul32 0.04 usec/call
42
idiv32 0.07 usec/call
43
iadd64 0.07 usec/call
44
isub64 0.07 usec/call
45
imul64 0.12 usec/call
46
idiv64 0.88 usec/call
47
memcpy128 0.02 usec/call
48
memset128 1.48 usec/call
49
delay(1) 1001.76 usec/call
50
51