Home | History | Annotate | Download | only in gen

Lines Matching defs:op

21 type op struct {
47 var ops = []op{
48 op{"add", "+"}, op{"sub", "-"}, op{"div", "/"}, op{"mul", "*"},
49 op{"lsh", "<<"}, op{"rsh", ">>"}, op{"mod", "%"},
52 // compute the result of i op j, cast as type t.
53 func ansU(i, j uint64, t, op string) string {
55 switch op {
86 // compute the result of i op j, cast as type t.
87 func ansS(i, j int64, t, op string) string {
89 switch op {