HDLRuby 2.11.7 → 2.11.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/hruby_sim/hruby_sim.h +1 -1
- data/ext/hruby_sim/hruby_sim_stack_calc.c +1 -1
- data/lib/HDLRuby/hruby_low2c.rb +1 -1
- data/lib/HDLRuby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b7d0296f617dc4b015e423c6f5b3e381fc3d91d9537a1bf4adf3fcc8e3a1f3c
|
4
|
+
data.tar.gz: 957f7763c2452bc1b96e1301fe2aebadd081a2b4ea6d282ae5907768b28b0e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28529796983feba1bba6502a63a9ace24e42f08410ba4afe70fc48bba1b36ba17bac3cdde95ef245590e5e3028428a477e59ef311e5eb7c9eaee48b394f01217
|
7
|
+
data.tar.gz: 90e23aa3e7cbfa2ac5c397a58a8b06b2f4798a72ca491a6134b4d7c694eba6952e02e8fc0e91b10aca8790129977f893ca67c626c2aa28845596365ad65560f1
|
data/ext/hruby_sim/hruby_sim.h
CHANGED
@@ -1111,7 +1111,7 @@ extern Value binary(Value (*oper)(Value,Value,Value));
|
|
1111
1111
|
* @param num the number of values to select from.
|
1112
1112
|
* @return the destination.
|
1113
1113
|
**/
|
1114
|
-
extern Value
|
1114
|
+
extern Value hselect(unsigned int num);
|
1115
1115
|
|
1116
1116
|
/** Cast calculation.
|
1117
1117
|
* @param typ the type to cast to.
|
@@ -108,7 +108,7 @@ Value binary(Value (*oper)(Value,Value,Value)) {
|
|
108
108
|
|
109
109
|
/** Selection calculation.
|
110
110
|
* @param num the number of choices to select within. */
|
111
|
-
Value
|
111
|
+
Value hselect(unsigned int num) {
|
112
112
|
Value* vals = alloca(num*sizeof(Value));
|
113
113
|
int i;
|
114
114
|
/* Get the values to concat from the stack. */
|
data/lib/HDLRuby/hruby_low2c.rb
CHANGED
@@ -2630,7 +2630,7 @@ module HDLRuby::Low
|
|
2630
2630
|
end
|
2631
2631
|
# Compute the resulting selection.
|
2632
2632
|
res << (" " * (level*3))
|
2633
|
-
res << "
|
2633
|
+
res << "hselect(#{expressions.size});\n"
|
2634
2634
|
# Restore the value pool state.
|
2635
2635
|
res << (" " * (level*3)) << "RV;\n"
|
2636
2636
|
return res
|
data/lib/HDLRuby/version.rb
CHANGED