Skip to content
Snippets Groups Projects
Commit c56df948 authored by Daniel Agar's avatar Daniel Agar
Browse files

mathlib expo template style

parent 78205b25
No related branches found
No related tags found
No related merge requests found
......@@ -42,13 +42,13 @@
#pragma once
#include <platforms/px4_defines.h>
#include <stdint.h>
namespace math
{
// Type-safe signum function
template<typename T> int sign(T val)
template<typename T>
int sign(T val)
{
return (T(0) < val) - (val < T(0));
}
......
......@@ -40,7 +40,6 @@
#pragma once
#include <platforms/px4_defines.h>
#include <stdint.h>
//this should be defined in stdint.h, but seems to be missing in the ARM toolchain (5.2.0)
#ifndef UINT64_C
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment