-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Akuli <[email protected]>
- Loading branch information
1 parent
8b6454b
commit e0d9568
Showing
4 changed files
with
101 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
# This is a list of files that don't behave correctly when ran with the self-hosted compiler. | ||
stdlib/errno.jou | ||
tests/404/indirect_import_symbol.jou | ||
tests/crash/null_deref.jou | ||
tests/other_errors/address_of_minusminus.jou | ||
tests/other_errors/array_literal_as_a_pointer.jou | ||
tests/other_errors/array0.jou | ||
tests/other_errors/assert_fail.jou | ||
tests/other_errors/assert_fail_multiline.jou | ||
tests/other_errors/instantiation_address_of_field.jou | ||
tests/other_errors/missing_return.jou | ||
tests/other_errors/missing_value_in_return.jou | ||
tests/other_errors/noreturn_but_return_with_value.jou | ||
tests/other_errors/noreturn_but_return_without_value.jou | ||
tests/other_errors/runtime_return_1.jou | ||
tests/other_errors/var_shadow.jou | ||
tests/should_succeed/and_or_not.jou | ||
tests/should_succeed/as.jou | ||
tests/should_succeed/compiler_cli.jou | ||
tests/should_succeed/errno_test.jou | ||
tests/should_succeed/file.jou | ||
tests/should_succeed/global_bug.jou | ||
tests/should_succeed/global.jou | ||
tests/should_succeed/global_bug.jou | ||
tests/should_succeed/if_elif_else.jou | ||
tests/should_succeed/implicit_conversions.jou | ||
tests/should_succeed/imported/point_factory.jou | ||
tests/should_succeed/indirect_method_import.jou | ||
tests/should_succeed/linked_list.jou | ||
tests/should_succeed/local_import.jou | ||
tests/should_succeed/loops.jou | ||
tests/should_succeed/mathlibtest.jou | ||
tests/should_succeed/plusplus_minusminus.jou | ||
tests/should_succeed/pointer.jou | ||
tests/should_succeed/printf.jou | ||
tests/should_succeed/return_void.jou | ||
tests/should_succeed/sizeof.jou | ||
tests/should_succeed/stderr.jou | ||
tests/should_succeed/undefined_value_warning.jou | ||
tests/should_succeed/union.jou | ||
tests/should_succeed/unreachable_warning.jou | ||
tests/should_succeed/unused_import.jou | ||
tests/syntax_error/bad_addressof.jou | ||
tests/wrong_type/assert.jou | ||
tests/wrong_type/cannot_be_indexed.jou | ||
tests/wrong_type/index.jou | ||
tests/should_succeed/imported/point_factory.jou | ||
tests/should_succeed/indirect_method_import.jou | ||
tests/404/indirect_import_symbol.jou | ||
tests/other_errors/noreturn_but_return_without_value.jou | ||
tests/other_errors/noreturn_but_return_with_value.jou | ||
tests/other_errors/assert_fail.jou | ||
tests/wrong_type/assert.jou | ||
tests/should_succeed/union.jou | ||
tests/other_errors/instantiation_address_of_field.jou | ||
tests/other_errors/array_literal_as_a_pointer.jou | ||
tests/other_errors/assert_fail_multiline.jou | ||
stdlib/errno.jou | ||
tests/should_succeed/errno_test.jou |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,73 @@ | ||
# Math lib | ||
# Some math functions | ||
|
||
# Other functions | ||
# Returns the absolute value of x: |x|. | ||
declare abs(x: int) -> int | ||
declare llabs(x: long) -> long | ||
declare fabs(x: double) -> double | ||
declare llabs(x: long) -> long | ||
|
||
# Rounding and remainder functions | ||
# Rounds x upward, returning the smallest integral value that is not less than x. | ||
declare ceil(x: double) -> double | ||
# Rounds x downward, returning the largest integral value that is not greater than x. | ||
declare floor(x: double) -> double | ||
# Returns the integral value that is nearest to x, with halfway cases rounded away from zero. | ||
declare round(x: double) -> double | ||
|
||
# Trigonometric functions | ||
# These functions use radians as the angle unit. | ||
# One radian is the angle of a circle slice with equal radius and arc length, about 57 degrees. | ||
# A full turn (360 degrees) is 2pi (about 6.28) radians. | ||
declare cos(x: double) -> double | ||
declare sin(x: double) -> double | ||
declare tan(x: double) -> double | ||
# The 'a' prefixed functions are inverse functions. | ||
# For example, asin is also known as arcsin and sin^-1. | ||
declare acos(x: double) -> double | ||
declare asin(x: double) -> double | ||
declare atan(x: double) -> double | ||
# Returns the angle of a point (x, y). Note the reversed order of the arguments. | ||
declare atan2(y: double, x: double) -> double | ||
declare cos(x: double) -> double | ||
declare sin(x: double) -> double | ||
declare tan(x: double) -> double | ||
|
||
declare fmod(x: double, y: double) -> double | ||
declare sqrt(x: double) -> double | ||
declare cbrt(x: double) -> double | ||
# Use nan("") to get a quiet NaN (Not-A-Number) value. | ||
# The argument must be an empty string. | ||
declare nan(tagp: byte*) -> double | ||
|
||
declare log(x: double) -> double | ||
declare log10(x: double) -> double | ||
declare log2(x: double) -> double | ||
# Hyperbolic versions of the trig functions | ||
declare cosh(x: double) -> double | ||
declare sinh(x: double) -> double | ||
declare tanh(x: double) -> double | ||
declare acosh(x: double) -> double | ||
declare asinh(x: double) -> double | ||
declare atanh(x: double) -> double | ||
|
||
# Exponential and logarithmic functions | ||
# returns e^x | ||
declare exp(x: double) -> double | ||
# returns 2^x | ||
declare exp2(x: double) -> double | ||
declare pow(x: double, y: double) -> double | ||
declare ldexp(x: double, exp: int) -> double | ||
|
||
declare fmax(x: double, y: double) -> double | ||
declare fmin(x: double, y: double) -> double | ||
# Returns the natural logarithm of x. | ||
declare log(x: double) -> double | ||
declare log2(x: double) -> double | ||
declare log10(x: double) -> double | ||
|
||
# Power functions | ||
# Raise to power. | ||
declare pow(x: double, y: double) -> double | ||
# Returns the square root of x. | ||
declare sqrt(x: double) -> double | ||
# Returns the cubic root of x. | ||
declare cbrt(x: double) -> double | ||
# Returns the hypotenuse of a right-angled triangle whose legs are x and y. | ||
declare hypot(x: double, y: double) -> double | ||
|
||
# These function are not support yet... | ||
# syntax error | ||
# declare modf(value: double, *iptr: double) -> double | ||
# declare frexp(value: double, *exp: int) -> double | ||
# declare poly(x: double, degree: int, coeffs[]: double) -> double | ||
# declare matherr(struct exception *e) | ||
# Error and gamma functions | ||
# Returns the error function value for x | ||
declare erf(x: double) -> double | ||
# Returns the complementary error function value for x. | ||
declare erfc(x: double) -> double | ||
# Returns the gamma function of x. | ||
declare tgamma(x: double) -> double | ||
# Returns the natural logarithm of the absolute value of the gamma. | ||
declare lgamma(x: double) -> double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters