From c3f0d05581654d823b54a180caba1e26c9e438e3 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 12 Jun 2016 19:30:54 +0200 Subject: [PATCH] Attic: gzip single file storage. Also to reduce clutter on recursive greps. --- ...-use-absolute-path-names-in-config.h.patch | 49 ------------ ...e-absolute-path-names-in-config.h.patch.gz | Bin 0 -> 714 bytes attic/check_integrity.sh | 75 ------------------ attic/check_integrity.sh.gz | Bin 0 -> 970 bytes ...o-use-sign-of-dda-delta_um-to-set-di.patch | 49 ------------ ...se-sign-of-dda-delta_um-to-set-di.patch.gz | Bin 0 -> 910 bytes 6 files changed, 173 deletions(-) delete mode 100644 attic/Configtool-use-absolute-path-names-in-config.h.patch create mode 100644 attic/Configtool-use-absolute-path-names-in-config.h.patch.gz delete mode 100755 attic/check_integrity.sh create mode 100755 attic/check_integrity.sh.gz delete mode 100644 attic/dda.c-attempts-to-use-sign-of-dda-delta_um-to-set-di.patch create mode 100644 attic/dda.c-attempts-to-use-sign-of-dda-delta_um-to-set-di.patch.gz diff --git a/attic/Configtool-use-absolute-path-names-in-config.h.patch b/attic/Configtool-use-absolute-path-names-in-config.h.patch deleted file mode 100644 index 7ddf247..0000000 --- a/attic/Configtool-use-absolute-path-names-in-config.h.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 72271041812d1136ea616cd7352e851ba40c678d Mon Sep 17 00:00:00 2001 -From: jbernardis -Date: Tue, 28 Apr 2015 20:12:14 -0400 -Subject: Configtool: use absolute path names in config.h. - -This commit was written more accidently to address issue #132, -let's keep it as patch in attic/ in case it becomes neccessary -one day. ---- - configtool.py | 18 ++++-------------- - 1 file changed, 4 insertions(+), 14 deletions(-) - -diff --git a/configtool.py b/configtool.py -index fd0e867..49cf957 100755 ---- a/configtool.py -+++ b/configtool.py -@@ -341,25 +341,15 @@ class ConfigFrame(wx.Frame): - if not self.pgPrinter.saveConfigFile(pfn): - return False - -- prefix = cmd_folder + os.path.sep -- lpfx = len(prefix) -- -- if bfn.startswith(prefix): -- rbfn = bfn[lpfx:] -- else: -- rbfn = bfn -- -- if pfn.startswith(prefix): -- rpfn = pfn[lpfx:] -- else: -- rpfn = pfn -+ bfn = bfn.replace("\\", "/") -+ pfn = pfn.replace("\\", "/") - - fp.write("\n") - fp.write("// Configuration for controller board.\n") -- fp.write("#include \"%s\"\n" % rbfn) -+ fp.write("#include \"%s\"\n" % bfn) - fp.write("\n") - fp.write("// Configuration for printer board.\n") -- fp.write("#include \"%s\"\n" % rpfn) -+ fp.write("#include \"%s\"\n" % pfn) - - fp.close() - --- -2.1.0 - diff --git a/attic/Configtool-use-absolute-path-names-in-config.h.patch.gz b/attic/Configtool-use-absolute-path-names-in-config.h.patch.gz new file mode 100644 index 0000000000000000000000000000000000000000..037fc1a18acd61b08c54c8a27aa8c82adf750ebb GIT binary patch literal 714 zcmV;*0yX^~iwFo4PfS+;14D0aW@%@1Z*OcZb#rAcVPbP{Y;|;HEpTCUXf1AGZDn&U zX>KiJZ*FF3XD($<%PY#^7XVOoW%$s5O7spKW&1Sg!o;HG3x$ z)^NGU2~;b1(*}|dbGp@{s>KY7a#oh?V!ysdm1=nFoi>}~y{%y%5#&00yH5zMOj~er zhY^ee)xr3dGj_Qp15|2f65PlLH^HQY4t72eT`AL`OZErBE)r470 zFCu(F`c4ucJ{3~iTtlX0)U>N6$q8lGNOj17L#0SZhCAjRLL=`uD~f{M+sf{Fdk5b@ ztYA#5I9Ln>Xk!u7R=N!~6PQtvh#?v8;&42g0QIFoa@GZk5o3+f8j50*Elv-stPl6h zxCU=QHzlqXOU`GfN}tY`Aj)z%pJ$uDDll^Ro66Z46elw=spc@wPdYLRDJ!Xc{TZDH zI*j4XE$?1NHG_T`4bCTsXf /dev/null -if [ $(basename ${PWD}) != "config" ]; then - echo "Execute this from within config/." - exit 1 -fi - -# We can't abort out of subshells, so track our success with a temporary file. -EXITFILE=$(mktemp) -trap "rm -f ${EXITFILE}" 0 -echo 0 > ${EXITFILE} - -# Check both, board and printer configurations. -for T in "board" "printer"; do - # Test #1: are all #defines in the generic config in all the individual - # files? - awk ' - /^#define/ { - print $2; - } - /^\/\/#define/ { - print $2; - } - ' < ../configtool/${T}.generic.h | while read W; do - for F in $(git ls-files ${T}.\*.h ../testcases/config.h.Profiling); do - if ! grep "#define" ${F} | grep -q ${W}; then - echo "Missing #define ${W} in ${F}." - echo 1 > ${EXITFILE} - fi - done - done - - # Test #2: the opposite, has the generic config all of the latest three - # individual configs? - for F in $(ls -t ${T}.*.h | head -3); do - awk ' - /^\/\/DEFINE_HEATERS_START/, /^\/\/DEFINE_HEATERS_END/ { - # This section is created on the fly, so not in the generic file. - next; - } - /^#define/ { - print $2; - } - /^\/\/#define/ { - print $2; - } - ' < ${F} | while read W; do - if ! grep "#define" ../configtool/${T}.generic.h | grep -q ${W}; then - echo "Missing #define ${W} in configtool/${T}.generic.h." - echo 1 > ${EXITFILE} - fi - done - done -done - -EXIT=$(cat ${EXITFILE}) - -if [ ${EXIT} -ne 0 ]; then - echo "Config integrity tests failed." -else - echo "Config integrity tests succeeded." -fi - -exit ${EXIT} diff --git a/attic/check_integrity.sh.gz b/attic/check_integrity.sh.gz new file mode 100755 index 0000000000000000000000000000000000000000..d84f58b38f524bd58a660ab0ad3d6fc6aa54666a GIT binary patch literal 970 zcmV;*12y~~iwFoTFI-mu17m1qV{2b&Zggd5a%psVE^}xAomFd3+e#4q?q4xDkpfk0 z1N~OoUR4luk@`Sw)Kn_>RvYg)Ug7NK?ydBaK9Tdib(jI44`Be%N1XFm_PznjYM976hx)2@& z0X3<$6BO1wbOzyh15!C} z6}{(UDAC-Z4OIDbLclwreM2^ldX)1{tfoj{0|(l8f-r#hx$;WS7<(QP9o+I zVM5MuGpI~gFBZmnI!V`}+SLG1Hsq-{OC)sR2(IP|;5>v;iB%ef(r>A>+EUALK)*y- z$&N}E<+8&)eGQq!yG++r6{!NgLjRD=fLhEE`VZHWi}ev4yn?uikKvy)E=orLn3o3P z(LLrHNeXM`uvB!dyR*`mL+?q_lc-S4ZNgsB1Moj%ff~%*lq@vuATj8xBAF>Bs zo#*IWKm`HRX6lZxtI&}&8hyDMUtYZ(z3Ly%Z~5g>M7axyN#3NO3c7%G498KRdHy z!QJ4!j{Q{v`?j^nUVrX4)o+~s$7cH_=pQ? -Date: Sun, 12 Oct 2014 23:17:48 +0200 -Subject: [PATCH] dda.c: attempts to use sign of dda->delta_um[] to set - direction. - -At that point we stored movement distance in steps signed in -dda->delta_um[] as well as unsigned in dda->delta[] plus its -sign in dda->{xyze}_direction. That's obvously redundant, so -the try was to get rid of the redundancy. - -However, dda_start() is the most time critical part when using -look-ahead, so this attemt was dropped. Next attempt will be to -use dda->{xyze}_direction in dda_find_crossing_speed(), the only -usage of the dda->delta_um[]. ---- - dda.c | 16 +++++++++++++++- - 1 file changed, 15 insertions(+), 1 deletion(-) - -diff --git a/dda.c b/dda.c -index 8d53256..195e472 100644 ---- a/dda.c -+++ b/dda.c -@@ -468,7 +468,21 @@ void dda_start(DDA *dda) { - endstops_on(); - - // set direction outputs -- x_direction(dda->x_direction); -+ // This is the fastest one. -+ x_direction(dda->x_direction); // 20164 bytes -+ // Costs 14 additional CPU clock cycles. -+ //x_direction(dda->delta_um[X] < 0 ? 1 : 0); // 20184 bytes -+ // Costs 12 additional CPU clock cycles. -+ //x_direction(dda->delta_um[X] >> (sizeof(int32_t) * 8 - 1)); // 20178 bytes -+ // Costs 14 additional CPU clock cycles. -+ //x_direction(dda->delta_um[X] > 0); // 20184 bytes -+ // Costs 12 additional CPU clock cycles. -+ //x_direction(dda->delta_um[X] < 0); // 20178 bytes -+ // Costs 5 additional CPU clock cycles. -+ //x_direction( ! ((*((uint8_t *)(&dda->delta_um[X]) + 3)) & 0x80)); // 20172 bytes -+ // Check just the last byte, that's smaller and faster. -+ // Costs 6 additional CPU clock cycles. -+ //x_direction((*((uint8_t *)(&dda->delta_um[X]) + 3)) > 0); // 20172 bytes - y_direction(dda->y_direction); - z_direction(dda->z_direction); - e_direction(dda->e_direction); --- -2.1.0 - diff --git a/attic/dda.c-attempts-to-use-sign-of-dda-delta_um-to-set-di.patch.gz b/attic/dda.c-attempts-to-use-sign-of-dda-delta_um-to-set-di.patch.gz new file mode 100644 index 0000000000000000000000000000000000000000..47257ad24a544f0a6a8c94ecd784feba3b283ff4 GIT binary patch literal 910 zcmV;919AKxiwFqu1WZ=|17u`jE@LfWbaZ8HaCCDmbZ;$nb7d`aX=iRNZ)PoIWMM62 zWo&d|Uv+IQbZ;$lWppiMX)bVKbYo}$y;WUr<2Dd{Hh;zTIa?>Hs^^L71wbLP%>^t8%~l zd9!`N-{-H&;GR@{Z$K}ebz_Pxkf=rpu51sCW_E>O>n*H#>w1Y6YAKv)x3kA)TXJ}- z*Z7Qe&k@bZOKm+Lq-lYrHsoKH2w5$y%yhVQ@Fnh@ zom4zzK@hOr9Kdf7kD&YZq0Ja_S&+dMS4$)l@sOAe)=q=*x2y#Dn#9V?NtFKs1Gjj7?&kM(d_gz1YG{;#PG|F4Sg$S8 z(E`PHfgXy#ckTPq{G8J~Q~$NXa0mGNBrcwgybp7!c z$O@f3LAK2bG~pioCyGNee|>-ph~P(R#}uLiUHTQeqM&~cuEcI^>+r3@Q()o0AM1zlmGw# literal 0 HcmV?d00001