Skip to content

Commit d999688

Browse files
authored
The assembly microkernel is not safe to use on ELFv1
1 parent 928fe1b commit d999688

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/power/idamin.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,15 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) {
326326
minf = ABS(x[0]); //index's not incremented
327327
if (inc_x == 1) {
328328

329+
#if defined(_CALL_ELF) && (_CALL_ELF == 2)
329330
BLASLONG n1 = n & -32;
330331
if (n1 > 0) {
331332

332333
min = diamin_kernel_32(n1, x, &minf);
333334
i = n1;
334335
}
335-
336+
#endif
337+
336338
while (i < n) {
337339
if (ABS(x[i]) < minf) {
338340
min = i;

0 commit comments

Comments
 (0)