Search found 2 matches

by MartinJ
Thu Aug 19, 2021 12:54 am
Forum: Report Bugs
Topic: Unexpectedly low floating-point performance in C
Replies: 28
Views: 160201

Re: Unexpectedly low floating-point performance in C

An update to this. I realised why my previous test code wasn't always running as fast as it could. The results of a fp operation aren't available for a few instructions so the test sequences weren't well optimised. Here's some new code (C instead of C++). This gives the following results: Integer Ad...
by MartinJ
Thu Mar 25, 2021 9:21 pm
Forum: Report Bugs
Topic: Unexpectedly low floating-point performance in C
Replies: 28
Views: 160201

Re: Unexpectedly low floating-point performance in C

I just thought I would post here because a search for ep32 fp performance leads here. I updated the test code in the previous post to fix a few things. My code and results are at the end. The main point is that, in the best case, integer adds and multiplies all take one cycle while 32 bit float adds...