Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l1mey112/fp-rounding-emulation
https://github.com/l1mey112/fp-rounding-emulation
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/l1mey112/fp-rounding-emulation
- Owner: l1mey112
- Created: 2024-08-19T12:35:13.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-05T07:27:23.000Z (3 months ago)
- Last Synced: 2024-10-10T11:24:44.843Z (about 1 month ago)
- Language: C
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# https://stackoverflow.com/questions/78776730/double-floating-point-operations-using-four-ieee-rounding-modes-implemented-in-t/78779343#comment138931233_78779343
```
l-m@debdinger ~/g/fp-rounding-emulation (master)> gcc *.c -lm -Wshadow -O3 && ./a.out
fadd:
fprc(0): 2clks
fprc(1): 45clks [100000/100000] x17 overhead
fprc(2): 21clks [100000/100000] x8 overhead
fprc(3): 10clks [100000/100000] x4 overhead
fsub:
fprc(0): 2clks
fprc(1): 46clks [100000/100000] x17 overhead
fprc(2): 22clks [100000/100000] x8 overhead
fprc(3): 10clks [100000/100000] x4 overhead
fmul:
fprc(0): 3clks
fprc(1): 76clks [100000/100000] x23 overhead
fprc(2): 38clks [100000/100000] x12 overhead
fprc(3): 39clks [100000/100000] x12 overhead
fmul (fma):
fprc(0): 3clks
fprc(1): 32clks [100000/100000] x10 overhead
fprc(2): 12clks [100000/100000] x4 overhead
fprc(3): 14clks [100000/100000] x4 overhead
fdiv:
fprc(0): 3clks
fprc(1): 94clks [100000/100000] x24 overhead
fprc(2): 64clks [100000/100000] x16 overhead
fprc(3): 64clks [100000/100000] x16 overhead
fdiv (fma):
fprc(0): 4clks
fprc(1): 45clks [100000/100000] x10 overhead
fprc(2): 18clks [100000/100000] x4 overhead
fprc(3): 17clks [100000/100000] x4 overhead
fsqrt:
fprc(0): 8clks
fprc(1): 97clks [100000/100000] x12 overhead
fprc(2): 67clks [100000/100000] x8 overhead
fprc(3): 69clks [100000/100000] x8 overhead
fsqrt (fma):
fprc(0): 8clks
fprc(1): 52clks [100000/100000] x6 overhead
fprc(2): 24clks [100000/100000] x3 overhead
fprc(3): 23clks [100000/100000] x3 overhead
```