diff options
| author | hierophect <hierophect@gmail.com> | 2020-07-22 13:59:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-22 13:59:39 -0400 |
| commit | e232ec10ceb9c78df27cb4b5cee79079efd85d84 (patch) | |
| tree | 132c5bfbc1db02d29a82021be595eec1a1122ae8 /py/mpz.c | |
| parent | 138189bad130569ac9a9b3051543b804db54ec6f (diff) | |
| parent | 05a10f7905bfb77f3d5dff2525c9d10375801329 (diff) | |
Merge branch 'main' into stm32-timer-allocator
Diffstat (limited to 'py/mpz.c')
| -rw-r--r-- | py/mpz.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2013, 2014 Damien P. George + * SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -444,6 +444,10 @@ STATIC size_t mpn_mul(mpz_dig_t *idig, mpz_dig_t *jdig, size_t jlen, mpz_dig_t * } ilen = id - oidig; + // check to prevent usb starvation + #ifdef RUN_BACKGROUND_TASKS + RUN_BACKGROUND_TASKS; + #endif } return ilen; |
