summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2017-08-30 19:44:00 +0200
committerOri Bernstein <ori@zomg.markovcorp.com>2017-08-30 12:23:50 -0700
commit28a3d40adca77b14c51a82605fc22ba67ae70752 (patch)
tree449854ba85762d1175f3d6f2517bf756eabbc1ad
parent7c8a2311ed9c5c01c22649018149ecd3a851e36a (diff)
download6as-28a3d40adca77b14c51a82605fc22ba67ae70752.tar.gz
Remove out variable in getflags
-rw-r--r--gen.awk36
1 files changed, 17 insertions, 19 deletions
diff --git a/gen.awk b/gen.awk
index 05acfbb..dcc8baf 100644
--- a/gen.awk
+++ b/gen.awk
@@ -80,40 +80,38 @@ END {
print "]"
}
-function getflag(s, out)
+function getflag(s)
{
if (s == "8086")
- out = "Bits16"
+ return "Bits16"
else if (s == "186")
- out = "Bits16"
+ return "Bits16"
else if (s == "286")
- out = "Bits16"
+ return "Bits16"
else if (s == "386")
- out = "Bits32"
+ return "Bits32"
else if (s == "486")
- out = "Bits32"
+ return "Bits32"
else if (s == "PENT")
- out = "Bits32"
+ return "Bits32"
else if (s == "P6")
- out = "Bits32"
+ return "Bits32"
else if (s == "KATMAI")
- out = "Bits32"
+ return "Bits32"
else if (s == "WILLAMETTE")
- out = "Bits32"
+ return "Bits32"
else if (s == "PRESCOTT")
- out = "Bits32"
+ return "Bits32"
else if (s == "X86_64")
- out = "Bits64"
+ return "Bits64"
else if (s == "NEHALEM")
- out = "Bits64"
+ return "Bits64"
else if (s == "WESTMERE")
- out = "Bits64"
+ return "Bits64"
else if (s == "SANDYBRIDGE")
- out = "Bits64"
+ return "Bits64"
else if (s == "AMD")
- out = "Bits32"
+ return "Bits32"
else
- out = ""
-
- return out
+ return ""
}