add fatanpi pseudocode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Aug 2019 07:05:37 +0000 (08:05 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Aug 2019 07:05:37 +0000 (08:05 +0100)
ztrans_proposal.mdwn

index 7d6d56a1862b41a391e217676ffccc42ccbdc110..868f3dcdb1b54ae45cdb8387a7b76102d2499ecf 100644 (file)
@@ -59,3 +59,9 @@ FATANH   | inverse hyperbolic tan   |                         | ZtransExt |
 * FSINCOS - fused macro-op between FSIN and FCOS (issued in that order).
 * FSINCOSPI - fused macro-op between FSINPI and FCOSPI (issued in that order).
 
+FATANPI example pseudo-code:
+
+    lui t0, 0x3F800 // upper bits of f32 1.0
+    fmv.x.s ft0, t0
+    fatan2pi.s rd, rs1, ft0
+