Discussion:
[ast-developers] Who or what fills |_Sftable.sf_ieee| ?
Roland Mainz
2013-09-28 12:07:08 UTC
Permalink
Hi!

----

Erm... does anyone remember where again the |_Sftable.sf_ieee| data
are created ?
I'm looking for the code which fills the following fields in |_Sftable.sf_ieee|:
-- snip --
src/lib/libast/sfio/sfhdr.h:#define _Sfieee (&_Sftable.sf_ieee)
src/lib/libast/sfio/sfhdr.h:#define _Sffinf
(_Sftable.sf_ieee.fltinf)
src/lib/libast/sfio/sfhdr.h:#define _Sfdinf
(_Sftable.sf_ieee.dblinf)
src/lib/libast/sfio/sfhdr.h:#define _Sflinf
(_Sftable.sf_ieee.ldblinf)
src/lib/libast/sfio/sfhdr.h:#define _Sffnan
(_Sftable.sf_ieee.fltnan)
src/lib/libast/sfio/sfhdr.h:#define _Sfdnan
(_Sftable.sf_ieee.dblnan)
src/lib/libast/sfio/sfhdr.h:#define _Sflnan
(_Sftable.sf_ieee.ldblnan)
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-09-28 13:33:57 UTC
Permalink
a good question gets you a fishing lesson

most mysterious macros etc in ast are probably iffe-generated
that would be the first place to look
some complex but easy to abstract subsystems may gen generated by a combination of
ast-subsystem-generator < ast-subsystem.tab
for libast those would be
comp/conf.tab
misc/magic.tab
port/lc.tab
when you see *.tab look in Makefile to determine the generator or run
nmake -nF 2>&1 | grep '\.tab'
ksh93 has
data/math.tab

some *.tab may be input to an iffe script
it depends on the vintage
the ancient ones will have a separate generator program
newer ones will be hooked with iffe

so, starting with the first choice for nan:

cd src/lib/libast
grep -i nan features/* # grep over the iffe files

features/float pops up as the likely candidate
Post by Roland Mainz
Hi!
----
Erm... does anyone remember where again the |_Sftable.sf_ieee| data
are created ?
-- snip --
src/lib/libast/sfio/sfhdr.h:#define _Sfieee (&_Sftable.sf_ieee)
src/lib/libast/sfio/sfhdr.h:#define _Sffinf
(_Sftable.sf_ieee.fltinf)
src/lib/libast/sfio/sfhdr.h:#define _Sfdinf
(_Sftable.sf_ieee.dblinf)
src/lib/libast/sfio/sfhdr.h:#define _Sflinf
(_Sftable.sf_ieee.ldblinf)
src/lib/libast/sfio/sfhdr.h:#define _Sffnan
(_Sftable.sf_ieee.fltnan)
src/lib/libast/sfio/sfhdr.h:#define _Sfdnan
(_Sftable.sf_ieee.dblnan)
src/lib/libast/sfio/sfhdr.h:#define _Sflnan
(_Sftable.sf_ieee.ldblnan)
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...