Rename jerry-libm to jerry-math (#4410)

That "libm" in the name of the library resulted in awkward naming
on *nix systems (`libjerry-libm.*`, "lib" occurring twice). And the
name of the corresponding header is `math.h` anyway.

Note that this is a breaking change in some sense. The commit
contains no API change, but the build system does change for users
of the math library.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2021-01-05 12:50:07 +01:00
committed by GitHub
parent 5962562e2d
commit 257814d063
62 changed files with 155 additions and 155 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
CC=gcc
LDFLAGS=-lm
GENS=gen-test-libm
GENS=gen-test-math
.PHONY: build
build: $(GENS)
@@ -24,5 +24,5 @@ build: $(GENS)
clean:
rm -f $(GENS)
gen-test-libm: gen-test-libm.c
gen-test-math: gen-test-math.c
$(CC) $< -o $@ $(LDFLAGS)
@@ -14,13 +14,13 @@
*/
/*
* Unit test generator for jerry-libm.
* Unit test generator for jerry-math.
* To be compiled separately from the rest of jerry and to be linked to a trusted libm.
* Its output should be redirected to test-libm.inc.h.
* Its output should be redirected to test-math.inc.h.
*
* Example:
* gcc gen-test-libm.c -o gen-test-libm -lm
* ./gen-test-libm >test-libm.inc.h
* gcc gen-test-math.c -o gen-test-math -lm
* ./gen-test-math >test-math.inc.h
*/
#include <math.h>
@@ -47,7 +47,7 @@ main (int argc, char **args)
" * limitations under the License.\n"
" */\n"
"\n"
"/* This file is automatically generated by the gen-test-libm.sh script.\n"
"/* This file is automatically generated by the gen-test-math.sh script.\n"
" * Do not edit! */\n"
"\n");
@@ -311,7 +311,7 @@ main (int argc, char **args)
GEN_DBL_TEST (ceil (-7.37e+19));
/* copysign tests */
/* SKIPPED: not publicly declared in jerry-libm
/* SKIPPED: not publicly declared in jerry-math
GEN_DBL_TEST (copysign (0.0, 0.0));
GEN_DBL_TEST (copysign (0.0, -0.0));
GEN_DBL_TEST (copysign (-0.0, 0.0));
@@ -443,7 +443,7 @@ main (int argc, char **args)
GEN_DBL_TEST (fabs (-7.37e+19));
/* finite tests */
/* SKIPPED: not publicly declared in jerry-libm
/* SKIPPED: not publicly declared in jerry-math
GEN_INT_TEST (finite (0.0));
GEN_INT_TEST (finite (-0.0));
GEN_INT_TEST (finite (1.0));
@@ -743,7 +743,7 @@ main (int argc, char **args)
GEN_DBL_TEST (pow (0.7, 1.2));
/* scalbn tests */
/* SKIPPED: not publicly declared in jerry-libm
/* SKIPPED: not publicly declared in jerry-math
GEN_DBL_TEST (scalbn (0.0, 0));
GEN_DBL_TEST (scalbn (-0.0, 0));
GEN_DBL_TEST (scalbn (0.0, 1));