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

Go to the source code of this file.

Macros

#define softfloat_countLeadingZeros32   softfloat_countLeadingZeros32
 

Functions

uint_fast8_t softfloat_countLeadingZeros32 (uint32_t a)
 

Macro Definition Documentation

◆ softfloat_countLeadingZeros32

#define softfloat_countLeadingZeros32   softfloat_countLeadingZeros32

Definition at line 42 of file s_countLeadingZeros32.c.

Function Documentation

◆ softfloat_countLeadingZeros32()

uint_fast8_t softfloat_countLeadingZeros32 ( uint32_t a)

Definition at line 45 of file s_countLeadingZeros32.c.

46{
48
49 count = 0;
50 if ( a < 0x10000 ) {
51 count = 16;
52 a <<= 16;
53 }
54 if ( a < 0x1000000 ) {
55 count += 8;
56 a <<= 8;
57 }
59 return count;
60
61}
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