summaryrefslogtreecommitdiff
path: root/xgbgen/expression.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-10 17:01:42 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-10 17:01:42 -0400
commitb618b2ea09167306cfe29b6966faf184bc893c2d (patch)
treeebd8b505ebd83db1b891bc7a7f70d75f26e581e6 /xgbgen/expression.go
parentb10760ea62c5c071496a71d1d9ab6752989a309f (diff)
a huge commit. splitting extensions into their own sub-packages.
Diffstat (limited to 'xgbgen/expression.go')
-rw-r--r--xgbgen/expression.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xgbgen/expression.go b/xgbgen/expression.go
index 0966b58..2047b5f 100644
--- a/xgbgen/expression.go
+++ b/xgbgen/expression.go
@@ -204,7 +204,7 @@ func (e *Padding) Reduce(prefix string) string {
if e.Concrete() {
return fmt.Sprintf("%d", e.Eval())
}
- return fmt.Sprintf("pad(%s)", e.Expr.Reduce(prefix))
+ return fmt.Sprintf("xgb.Pad(%s)", e.Expr.Reduce(prefix))
}
func (e *Padding) String() string {
@@ -233,7 +233,7 @@ func (e *PopCount) Reduce(prefix string) string {
if e.Concrete() {
return fmt.Sprintf("%d", e.Eval())
}
- return fmt.Sprintf("popCount(%s)", e.Expr.Reduce(prefix))
+ return fmt.Sprintf("xgb.PopCount(%s)", e.Expr.Reduce(prefix))
}
func (e *PopCount) String() string {