Browse Source

The assembly microkernel is not safe to use on ELFv1

tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
d999688d1a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      kernel/power/idamin.c

+ 3
- 1
kernel/power/idamin.c View File

@@ -326,13 +326,15 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) {
minf = ABS(x[0]); //index's not incremented
if (inc_x == 1) {

#if defined(_CALL_ELF) && (_CALL_ELF == 2)
BLASLONG n1 = n & -32;
if (n1 > 0) {

min = diamin_kernel_32(n1, x, &minf);
i = n1;
}

#endif
while (i < n) {
if (ABS(x[i]) < minf) {
min = i;


Loading…
Cancel
Save