aboutsummaryrefslogtreecommitdiffstats
path: root/bba
diff options
context:
space:
mode:
authorEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-26 00:54:04 +0000
committerEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-26 00:54:04 +0000
commitf78a74b9cff79a41f992cfaf20deb88054ea27a6 (patch)
tree5086d59b3be9b4a0b6b3959955db79dc7c5f0bd9 /bba
parent7a8e8999d21205044e707a2765dc444531d69cef (diff)
parent950f33c1bb6260f830e6974583d0e1424146b386 (diff)
downloadnextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.tar.gz
nextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.tar.bz2
nextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.zip
Merge branch 'eddieh/idstring_speedup' into 'master'
Reduce id() lookups for commonly used update_budget() See merge request SymbioticEDA/nextpnr!20
Diffstat (limited to 'bba')
-rw-r--r--bba/main.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/bba/main.cc b/bba/main.cc
index cd09f804..9f7da8d2 100644
--- a/bba/main.cc
+++ b/bba/main.cc
@@ -276,13 +276,13 @@ int main(int argc, char **argv)
case 4:
data[cursor++] = value >> 24;
data[cursor++] = value >> 16;
- /* fall-through */
+ /* fall-through */
case 2:
data[cursor++] = value >> 8;
- /* fall-through */
+ /* fall-through */
case 1:
data[cursor++] = value;
- /* fall-through */
+ /* fall-through */
case 0:
break;
default:
@@ -293,13 +293,13 @@ int main(int argc, char **argv)
case 4:
data[cursor + 3] = value >> 24;
data[cursor + 2] = value >> 16;
- /* fall-through */
+ /* fall-through */
case 2:
data[cursor + 1] = value >> 8;
- /* fall-through */
+ /* fall-through */
case 1:
data[cursor] = value;
- /* fall-through */
+ /* fall-through */
case 0:
break;
default: