Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Do different CPUs treat BODMAS in a different order to others?

0
Posted

Do different CPUs treat BODMAS in a different order to others?

0

It maynot be the Operator order if the program is written in C and the cpus are different (eg. Intel or PowerPC) then it maybe big or little endian you are running into and you may need to compile for each type of CPU. I dont know for sure just food for thought.

0

There are acouple of things to watch: The X86 FPU actually works at excess precision, so that it is possible dependng on exactly how the compiler/OS have set up the FPU state for you to get slightly different results, in a numerically unstable problem this can cause effectively random results after running for a while. Similarly, results will differ on other architectures as they may have different FPU internal word lengths. Finally handling of things like denormals and NAN can differ between platforms and even have different defaults in different tool chains. Then there is the possibility (Likely) of a straightforward bug in your code, endian issues, compiler bugs…. Lots of ways for it to all go pearshaped. Regards, Dan.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123