5:46:17rotateqOkay I look into the wonderful readable source. :) Sorry.
5:47:07rotateqI should go on implementing it without division via Montgomery reduction, but something didn't work out from translating the "pseudo-code".
6:03:26rotateqSo maybe we save Montgomery for a possible compiler macro. :) It's good when being on a small platform when one doesn't have division routines.
6:05:44rotateqWhen reading in one of my favorite math books "Concrete Mathematics - A Foundation for Computer Science" by Knuth et al. he gives, that it would make sense to define (mod x 0) = x.
6:13:34moon-childapl defines 0|x as x. But apl also defines e.g. floor on complex numbers ...