libtommath icon indicating copy to clipboard operation
libtommath copied to clipboard

typos

Open spaette opened this issue 3 years ago • 0 comments

below can be modified

$ cat typos.sh
#!/bin/sh

sed -i "s/Dimminished/Diminished/g" libtommath/logs/before_after.dem
sed -i "s/Dimminished/Diminished/g" libtommath/logs/graphs.dem
sed -i "s/accomodate/accommodate/g" libtommath/mp_mul_2.c
sed -i "s/accomodate/accommodate/g" libtommath/mp_2expt.c
sed -i "s/addtional/additional/g" libtommath/mp_prime_is_prime.c
sed -i "s/alot/a lot/g" libtommath/changes.txt
sed -i "s/alot/a lot/g" libtommath/mp_exptmod.c
sed -i "s/alot/a lot/g" libtommath/mp_montgomery_calc_normalization.c
sed -i "s/annonying/annoying/g" libtommath/astylerc
sed -i "s/asymptopically/asymptotically/g" libtommath/s_mp_mul_karatsuba.c
sed -i "s/calulates/calculates/g" libtommath/mp_reduce_setup.c
sed -i "s/configuraion/configuration/g" libtommath/doc/makefile
sed -i "s/eliminiation/elimination/g" libtommath/CMakeLists.txt
sed -i "s/embeded/embedded/g" libtommath/mp_prime_is_prime.c
sed -i "s/endianess/endianness/g" libtommath/demo/test.c
sed -i "s/iterrate/iterate/g" libtommath/s_mp_sqr_comba.c
sed -i "s/iterrate/iterate/g" libtommath/s_mp_mul_high_comba.c
sed -i "s/iterrate/iterate/g" libtommath/s_mp_mul_comba.c
sed -i "s/maginitude/magnitude/g" libtommath/mp_cmp_mag.c
sed -i "s/offseting/offsetting/g" libtommath/s_mp_montgomery_reduce_comba.c
sed -i "s/ofthe/of the/g" libtommath/doc/bn.tex
sed -i "s/otherway/other way/g" libtommath/mp_lshd.c
sed -i "s/packagage/package/g" libtommath/changes.txt
sed -i "s/preemptivly/preemptively/g" libtommath/mp_prime_is_prime.c
sed -i "s/probabilty/probability/g" libtommath/doc/bn.tex
sed -i "s/programms/programs/g" libtommath/doc/bn.tex
sed -i "s/seperate/separate/g" libtommath/changes.txt
sed -i "s/simplifiy/simplify/g" libtommath/demo/test.c
# sed -i "s/tollchocked/toll-checked/g" libtommath/mtest/mpi.c
sed -i "s/trimed/trimmed/g" libtommath/mp_clamp.c
sed -i "s/triming/trimming/g" libtommath/demo/mtest_opponent.c
sed -i "s/uncommited/uncommitted/g" libtommath/makefile
sed -i "s/unsused/unused/g" libtommath/changes.txt
$ 

unclear about the fix for tollchocked

$ grep -nr Dimminished libtommath
libtommath/logs/before_after.dem:26:      'expt_dr-before.log' smooth bezier title "Exptmod (Dimminished Radix) (before)", \
libtommath/logs/before_after.dem:27:      'expt_dr-after.log' smooth bezier title "Exptmod (Dimminished Radix) (after)", \
libtommath/logs/graphs.dem:12:plot 'expt.log' smooth bezier title "Exptmod (Montgomery)", 'expt_dr.log' smooth bezier title "Exptmod (Dimminished Radix)", 'expt_2k.log' smooth bezier title "Exptmod (2k Reduction)"
$ grep -nr accomodate libtommath
libtommath/mp_mul_2.c:13:   /* grow to accomodate result */
libtommath/mp_2expt.c:18:   /* grow a to accomodate the single bit */
$ grep -nr addtional libtommath
libtommath/mp_prime_is_prime.c:216:        If the BPSW test and/or the addtional Frobenious test have been
$ grep -nr alot libtommath
libtommath/changes.txt:447:v0.07  -- Removed alot of heap operations from core functions to speed them up
libtommath/mp_exptmod.c:8: * embedded in the normal function but that wasted alot of stack space
libtommath/mp_montgomery_calc_normalization.c:10: * the leading bit of b.  This saves alot of multiple precision shifting.
$ grep -nr annonying libtommath
libtommath/astylerc:7:# Do not create backup, annonying in the times of git
$ grep -nr asymptopically libtommath
libtommath/s_mp_mul_karatsuba.c:30: * O(N**lg(3)) or O(N**1.584) work which is asymptopically lower than
$ grep -nr calulates libtommath
libtommath/mp_reduce_setup.c:7: * For a given modulus "b" it calulates the value required in "a"
$ grep -nr configuraion libtommath
libtommath/doc/makefile:43:# Its configuraion is well documented
$ grep -nr eliminiation libtommath
libtommath/CMakeLists.txt:64:    # Clang requires at least '-O1' for dead code eliminiation
$ grep -nr embeded libtommath
libtommath/mp_prime_is_prime.c:184:       * it gets used for small embeded processors, too. Some of those MCUs
$ grep -nr endianess libtommath
libtommath/demo/test.c:2169:   mp_endian endianess = MP_NATIVE_ENDIAN;
libtommath/demo/test.c:2183:              endianess, 0uL, &a));
libtommath/demo/test.c:2185:                endianess, 0uL, (const void *)buf));
$ grep -nr iterrate libtommath
libtommath/s_mp_sqr_comba.c:42:      /* this is the number of times the loop will iterrate, essentially
libtommath/s_mp_mul_high_comba.c:38:      /* this is the number of times the loop will iterrate, essentially its
libtommath/s_mp_mul_comba.c:46:      /* this is the number of times the loop will iterrate, essentially
$ grep -nr maginitude libtommath
libtommath/mp_cmp_mag.c:6:/* compare maginitude of two ints (unsigned) */
$ grep -nr offseting libtommath
libtommath/s_mp_montgomery_reduce_comba.c:64:       * by b**i is handled by offseting which columns the results
$ grep -nr ofthe libtommath
libtommath/doc/bn.tex:522:ofthe structure so the \texttt{mp\_int} represents the default integer which is zero.  If the
$ grep -nr otherway libtommath
libtommath/mp_lshd.c:30:    * except the window goes the otherway around.  Copying from
$ grep -nr packagage libtommath
libtommath/changes.txt:416:          file packagage any more.  Instead of just adding "bn.c" you have to add
$ grep -nr preemptivly libtommath
libtommath/mp_prime_is_prime.c:221:        To preemptivly answer the dangling question: no, a witness does not
$ grep -nr probabilty libtommath
libtommath/doc/bn.tex:2216:the diagonal from $(512,2^{-80})$ downwards and to the right to gain a lower probabilty of getting
$ grep -nr programms libtommath
libtommath/doc/bn.tex:213:programms differ in the output of \texttt{libtool --version}
$ grep -nr seperate libtommath
libtommath/changes.txt:415:       -- Re-packaged all the source as seperate files.  Means the library a single
 grep -nr simplifiy libtommath
libtommath/demo/test.c:1551:   All numbers as strings to simplifiy things, especially for the
$ grep -nr tollchocked libtommath
libtommath/mtest/mpi.c:421:  get tollchocked.
$ grep -nr trimed libtommath
libtommath/mp_clamp.c:9: * trimed and the leading "used" digit will be non-zero
$ grep -nr triming libtommath
libtommath/demo/mtest_opponent.c:85:      /* randomly clear and re-init one variable, this has the affect of triming the alloc space */
$ grep -nr uncommited libtommath
libtommath/makefile:133:        @git diff-index --quiet HEAD -- || ( echo "FAILURE: uncommited changes or not a git" && exit 1 )
$ grep -nr unsused libtommath
libtommath/changes.txt:22:       -- API's with return values are now by default marked as "warn on unsused result", this
$ 

spaette avatar Aug 27 '22 19:08 spaette