Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Verified Commit 694dab8e authored by Ahmed Harhash's avatar Ahmed Harhash
Browse files

[Fix] Replace floating-point operations with fixed-point arithmetic in aw8695 and cam_ois drivers

- Updated `aw8695.c` to replace floating-point multiplication with fixed-point arithmetic:
  - Changed `f0_pre_low` and `f0_pre_high` calculations to use integer math.
  - Adjusted conditional checks to work with the new fixed-point representation.

- Updated `cam_ois_core.c` to use integer arithmetic for `c` and `d` calculations:
  - Replaced floating-point operations with scaled integer calculations.
  - Used `long long` casting to handle large intermediate values.
parent fd4e5603
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment