Skip to content

Commit 3f6e928

Browse files
authored
Declare result as volatile to keep compilers from optimizing it out
1 parent 7d4a479 commit 3f6e928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/arm64/dot_kernel_asimd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262262

263263
static RETURN_TYPE dot_kernel_asimd(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
264264
{
265-
RETURN_TYPE dot = 0.0;
265+
volatile RETURN_TYPE dot = 0.0;
266266
BLASLONG j = 0;
267267

268268
__asm__ __volatile__ (

0 commit comments

Comments
 (0)