forked from jerryscript-project/jerryscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put negate into another file so it cannot be inlined
JerryScript-DCO-1.0-Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
- Loading branch information
1 parent
676659d
commit 201b342
Showing
5 changed files
with
28 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Created by skyline on 2024-05-16. | ||
// | ||
|
||
#include "ecma-helper-helper.h" | ||
|
||
ecma_number_t JERRY_ATTR_CONST | ||
ecma_helper_negate(ecma_number_t num) | ||
{ | ||
return -num; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by skyline on 2024-05-16. | ||
// | ||
|
||
#ifndef JERRY_ECMA_HELPER_HELPER_H | ||
#define JERRY_ECMA_HELPER_HELPER_H | ||
|
||
#include "ecma-globals.h" | ||
|
||
ecma_number_t ecma_helper_negate(ecma_number_t num); | ||
|
||
#endif // JERRY_ECMA_HELPER_HELPER_H |
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