analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
924 stars 1.65k forks source link

util: no_os_util: Update GCD for faster execution #2187

Closed chegbeli closed 4 months ago

chegbeli commented 4 months ago

Pull Request Description

The greatest common divisor in the previous version was executing slow. In most cases this will not be noticeable, but some drivers will need a faster execution of the GCD in order to reduce the response time of those drivers. This has been noticed with the ADF4382 and has been tested with the design to check that the new implementation is working.

PR Type

PR Checklist