From: Luke Kenneth Casson Leighton Date: Wed, 26 Apr 2023 18:50:32 +0000 (+0100) Subject: rename maxloc page X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e519e34e8d47d5404d90c9b902b8509244a1257;p=libreriscv.git rename maxloc page --- diff --git a/openpower/sv/cookbook/fortran__95__maxloc.mdwn b/openpower/sv/cookbook/fortran__95__maxloc.mdwn deleted file mode 100644 index bd7d8260c..000000000 --- a/openpower/sv/cookbook/fortran__95__maxloc.mdwn +++ /dev/null @@ -1,23 +0,0 @@ - - -``` -int m2(int * const restrict a, int n) -{ - int m, nm; - int i; - - m = INT_MIN; - nm = -1; - for (i=0; i m) - { - m = a[i]; - nm = i; - } - } - return nm; -} -``` - -[[!tag svp64_cookbook ]] diff --git a/openpower/sv/cookbook/fortran_maxloc.mdwn b/openpower/sv/cookbook/fortran_maxloc.mdwn new file mode 100644 index 000000000..bd7d8260c --- /dev/null +++ b/openpower/sv/cookbook/fortran_maxloc.mdwn @@ -0,0 +1,23 @@ + + +``` +int m2(int * const restrict a, int n) +{ + int m, nm; + int i; + + m = INT_MIN; + nm = -1; + for (i=0; i m) + { + m = a[i]; + nm = i; + } + } + return nm; +} +``` + +[[!tag svp64_cookbook ]]