Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
do cpus have to calculate single digit integers?
i remember reading something many years ago about cpus already having the answer for basic math calculations. if cpus still use this method. where is the answer stored? the registry, the instruction set cache, ALU, what is this technology called.
non wikipedia links would be helpful
1 Answer
- Me2Lv 76 years ago
Simple arithmetic is performed extremely quickly by a CPU. If solutions were precalculated, they'd need to be stored in a lookup table. Retrieving a solution would involve calculating a index to access the relevant table entry, which would then have to be read. That would take many more steps and much more time than the calculation.
Complex calculations involving trigonometric, logarithmic, and exponentiation functions use lookup tables, since these functions are expensive in terms of CPU time and resources.