shithub: docs.9front.org

Download patch

ref: f6ff8302f18a936f5b4d41a2a371346a24daf48c
parent: a01b8642c3fd319efd13a5f90680fab759f627ee
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Mar 4 07:04:23 EST 2021

porting: floating point exceptions

--- a/porting.md
+++ b/porting.md
@@ -80,6 +80,12 @@
 
 You could copy it from APE (`/sys/src/ape`) or just roll out your own.
 
+### Floating point exceptions
+
+By default, Plan 9 has various exceptions enabled.  Try
+`setfcr(getfcr() & ~(FPINVAL|FPOVFL))` in `main` function before
+running any of the ported logic.
+
 ### Some weird stuff with types/signatures not matching during linking
 
 This is probably caused by the compiler getting confused with forward