summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/fpu/fpu_sqrt.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r258779,r258780,r258787,r258822:eadler2014-02-041-1/+1
| | | | | | | | | | | | | Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this shifts into the sign bit. Instead use (1U << 31) which gets the expected result. Similar to the (1 << 31) case it is not defined to do (2 << 30). This fix is not ideal as it assumes a 32 bit int, but does fix the issue for most cases. A similar change was made in OpenBSD.
* Include <sys/types.h> before <sys/systm.h> to get typedefs requiredgrehan2008-04-091-1/+1
| | | | by new atomic.h. Fixes tinderbox LINT build.
* Add a floating-point emulator so that a single userland or single ABImarcel2008-02-231-0/+415
can run on processors that don't have a FPU. This is typically the case for Book E processors. While a tuned system will probably want to use soft-float (or use a processor that has a FPU if the usage is FP intensive enough), allowing hard-float on FPU-less systems gives great portability and flexibility. Obtained from: NetBSD
OpenPOWER on IntegriCloud