You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
FixedPointsArduino/src/FixedPointsCommon/SFixedCommon.h

29 lines
957 B

// Copyright 2017-2021 Pharap
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include "../FixedPoints.h"
FIXED_POINTS_BEGIN_NAMESPACE
using SQ3x4 = SFixed<3, 4>;
using SQ7x8 = SFixed<7, 8>;
using SQ15x16 = SFixed<15, 16>;
using SQ31x32 = SFixed<31, 32>;
using SQ1x6 = SFixed<1, 6>;
using SQ1x14 = SFixed<1, 14>;
using SQ1x30 = SFixed<1, 30>;
using SQ1x62 = SFixed<1, 62>;
FIXED_POINTS_END_NAMESPACE