File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717# -------------------------------------------------------------------------
18- TARGETACT =_all_.act fxp.act misc.act
18+ TARGETACT =_all_.act fxp.act misc.act sint.act
1919TARGETACTSUBDIR =math
2020
2121include $(ACT_HOME ) /scripts/Makefile.std
Original file line number Diff line number Diff line change 2121
2222import "math/fxp.act";
2323import "math/misc.act";
24+ import "math/sint.act";
Original file line number Diff line number Diff line change 1+ namespace math {
2+ export
3+ template<pint W>
4+ deftype sint <: fixpoint<W,0> ()
5+ {
6+ methods {
7+ function positive() : bool {
8+ chp {
9+ self := fxp::positive<W,0>(x)
10+ }
11+ }
12+ }
13+ }
14+
15+ export
16+ namespace sint_ops {
17+ template<pint W,N>
18+ function clsl(sint<W> v) : sint<W> {
19+ chp {
20+ self.x := v.x << N
21+ }
22+ }
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments