Skip to content

Commit

Permalink
[arch] god dam tinymaix
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Feb 3, 2024
1 parent c06a58e commit fa07250
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions board/longanpi-3h/tinymaix/arch_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ limitations under the License.

#include "stdlib.h"
#include "stdint.h"
#include "math.h"
#include "float.h"
#include "tinymaix.h"

#if (TM_MDL_TYPE != TM_MDL_FP8_143) && (TM_MDL_TYPE != TM_MDL_FP8_152)
Expand Down
3 changes: 1 addition & 2 deletions board/longanpi-3h/tinymaix/tm_layers.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// It is default O0 implement
#include "float.h"
#include "math.h"
#include "limits.h"
#include "tinymaix.h"

#if TM_OPT_LEVEL == TM_OPT0
Expand Down
2 changes: 0 additions & 2 deletions board/longanpi-3h/tinymaix/tm_layers_O1.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ mdwconv
conv
*/

#include "float.h"
#include "math.h"
#include "tinymaix.h"

#if TM_OPT_LEVEL == TM_OPT1
Expand Down
3 changes: 3 additions & 0 deletions include/arch/arm32/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ extern "C" {

#define INT_MAX (0x7fffffff)

#define FLT_MIN 1.175494351e-38F
#define FLT_MAX 3.402823466e+38F

#define UINT8_MAX (0xff)
#define UINT16_MAX (0xffff)
#define UINT32_MAX (0xffffffffU)
Expand Down

0 comments on commit fa07250

Please sign in to comment.