-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Длинная арифметика в библиотеке Рефала-5λ #130
Comments
65 tasks
Mazdaywik
added a commit
that referenced
this issue
Nov 20, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 20, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Для случаев двух макроцифр предусмотрены оптимизации — вызовы функций на Си++.
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
В текущей реализации они вызывают Divmod и возвращают соответствующую компоненту её результата.
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Mazdaywik
added a commit
that referenced
this issue
Nov 24, 2017
Да, длинная арифметика большей частью написана на Рефале. Да, неоптимально и много где можно оптимизировать. Но это потом. Сейчас достаточно этого. Важно, что пара макроцифр обрабатывается как частный случай, что не должно существенно снижать производительность (честно — не мерял). |
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Эта задача — подзадача для #102.
Требуется реализовать поддержку функций
Add
,Div
,Divmod
,Mod
,Mul
,Numb
,Sub
,Symb
иCompare
в библиотеке Простого Рефала. Также предлагается реализовывать длинную арифметику не на Си++, а на Рефале.Подход к реализации можно посмотреть, например, у Стеллецкого:
http://www.cnshb.ru/vniitei/sw/refal/refal_s.htm#add
The text was updated successfully, but these errors were encountered: