Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
s_countLeadingZeros16.c File Reference
#include <stdint.h>
#include "platform.h"
#include "primitives.h"
Include dependency graph for s_countLeadingZeros16.c:

Go to the source code of this file.

Macros

#define softfloat_countLeadingZeros16   softfloat_countLeadingZeros16
 

Functions

uint_fast8_t softfloat_countLeadingZeros16 (uint16_t a)
 

Macro Definition Documentation

◆ softfloat_countLeadingZeros16

#define softfloat_countLeadingZeros16   softfloat_countLeadingZeros16

Definition at line 42 of file s_countLeadingZeros16.c.

Function Documentation

◆ softfloat_countLeadingZeros16()

uint_fast8_t softfloat_countLeadingZeros16 ( uint16_t a)

Definition at line 45 of file s_countLeadingZeros16.c.

46{
48
49 count = 8;
50 if ( 0x100 <= a ) {
51 count = 0;
52 a >>= 8;
53 }
55 return count;
56
57}
int * count
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
const uint_least8_t softfloat_countLeadingZeros8[256]
uint8_t uint_fast8_t
Definition stdint.h:154