aboutsummaryrefslogtreecommitdiff
path: root/unix/as.ssol/enbint.s
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/as.ssol/enbint.s
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/as.ssol/enbint.s')
-rw-r--r--unix/as.ssol/enbint.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/unix/as.ssol/enbint.s b/unix/as.ssol/enbint.s
new file mode 100644
index 00000000..ad73e9bf
--- /dev/null
+++ b/unix/as.ssol/enbint.s
@@ -0,0 +1,20 @@
+ .seg "text"
+ .global _ieee_enbint
+
+! _IEEE_ENBINT -- Enable the floating point exceptions indicated by the
+! bitmask passed as the only argument. The current bitmask is returned as
+! the function value.
+
+_ieee_enbint:
+ set 0x0f800000,%o4
+ sll %o0,23,%o1
+ st %fsr,[%sp+0x44]
+ ld [%sp+0x44],%o0
+ and %o1,%o4,%o1
+ andn %o0,%o4,%o2
+ or %o1,%o2,%o1
+ st %o1,[%sp+0x44]
+ ld [%sp+0x44],%fsr
+ and %o0,%o4,%o0
+ retl
+ srl %o0,23,%o0